diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-07 10:40:44 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-07 10:40:44 -0500 |
commit | b642e50aea1b966f3b78c49e806b4a2c5497a861 (patch) | |
tree | 30f8f19ff733244dbf21b3cd7f680d5b2ade5371 /src | |
parent | 94f1adccd36df3ad75d2c257c9ae1ca448f3e4ac (diff) | |
download | postgresql-b642e50aea1b966f3b78c49e806b4a2c5497a861.tar.gz postgresql-b642e50aea1b966f3b78c49e806b4a2c5497a861.zip |
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.
Diffstat (limited to 'src')
-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 bae6c22a813..acfeee8e918 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -210,7 +210,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? */ |