diff options
| author | Tom Lane | 2016-03-07 15:40:44 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-03-07 15:40:57 +0000 |
| commit | 89f8372cb3a223cace21d4037336bfb37e8dbf3c (patch) | |
| tree | 9002983ab69fdefc6c733a8b511a6a6bebd9b429 | |
| parent | fb3ea0465c1710c565e98d4b3e37aebb4e487eaf (diff) | |
Fix backwards test for Windows service-ness in pg_ctl.
A thinko in a96761391 caused pg_ctl to get it exactly backwards when
deciding whether to report problems to the Windows eventlog or to stderr.
Per bug #14001 from Manuel Mathar, who also identified the fix.
Like the previous patch, back-patch to all supported branches.
| -rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 0d68ec93df9..1144aa3758d 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -223,7 +223,7 @@ write_stderr(const char *fmt,...) * On Win32, we print to stderr if running on a console, or write to * eventlog if running as a service */ - if (!pgwin32_is_service()) /* Running as a service */ + if (pgwin32_is_service()) /* Running as a service */ { char errbuf[2048]; /* Arbitrary size? */ |
