Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b642e50

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 94f1adc commit b642e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_ctl/pg_ctl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ write_stderr(const char *fmt,...)
210210
* On Win32, we print to stderr if running on a console, or write to
211211
* eventlog if running as a service
212212
*/
213-
if (!pgwin32_is_service()) /* Running as a service */
213+
if (pgwin32_is_service()) /* Running as a service */
214214
{
215215
char errbuf[2048]; /* Arbitrary size? */
216216

0 commit comments

Comments
 (0)