mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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.
This commit is contained in:
parent
5d1826fe76
commit
45b87cc57f
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,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? */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue