postgresql/src/backend/port
Alvaro Herrera a967613911 Windows: Make pg_ctl reliably detect service status
pg_ctl is using isatty() to verify whether the process is running in a
terminal, and if not it sends its output to Windows' Event Log ... which
does the wrong thing when the output has been redirected to a pipe, as
reported in bug #13592.

To fix, make pg_ctl use the code we already have to detect service-ness:
in the master branch, move src/backend/port/win32/security.c to src/port
(with suitable tweaks so that it runs properly in backend and frontend
environments); pg_ctl already has access to pgport so it Just Works.  In
older branches, that's likely to cause trouble, so instead duplicate the
required code in pg_ctl.c.

Author: Michael Paquier
Bug report and diagnosis: Egon Kocjan
Backpatch: all supported branches
2016-01-07 11:59:08 -03:00
..
aix Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
darwin pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dynloader Update copyright for 2016 2016-01-02 13:33:40 -05:00
hpux Redefine Datum as uintptr_t, instead of unsigned long. 2009-12-31 19:41:37 +00:00
tas Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32 Windows: Make pg_ctl reliably detect service status 2016-01-07 11:59:08 -03:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Add a basic atomic ops API abstracting away platform/architecture details. 2014-09-25 23:49:05 +02:00
atomics.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
posix_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sysv_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sysv_shmem.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
unix_latch.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32_latch.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32_shmem.c Update copyright for 2016 2016-01-02 13:33:40 -05:00