Content-Length: 259135 | pFad | http://github.com/postgrespro/postgres/commit/89f8372cb3a223cace21d4037336bfb37e8dbf3c

42 Fix backwards test for Windows service-ness in pg_ctl. · postgrespro/postgres@89f8372 · GitHub
Skip to content

Commit 89f8372

Browse files
committed
Fix backwards test for Windows service-ness in pg_ctl.
A thinko in a967613 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.
1 parent fb3ea04 commit 89f8372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_ctl/pg_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ write_stderr(const char *fmt,...)
223223
* On Win32, we print to stderr if running on a console, or write to
224224
* eventlog if running as a service
225225
*/
226-
if (!pgwin32_is_service()) /* Running as a service */
226+
if (pgwin32_is_service()) /* Running as a service */
227227
{
228228
char errbuf[2048]; /* Arbitrary size? */
229229

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/89f8372cb3a223cace21d4037336bfb37e8dbf3c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy