Replace direct fprintf(stderr) calls by write_stderr(), and cause this
Tom Lane <tgl@sss.pgh.pa.us>
Replace direct fprintf(stderr) calls by write_stderr(), and cause this routine to do something appropriate on Win32. Also, add a security check on Win32 that parallels the can't-run-as-root check on Unix. Magnus Hagander
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +8 −10 |
| src/backend/main/main.c | modified | +22 −16 |
| src/backend/nls.mk | modified | +2 −2 |
| src/backend/port/win32/Makefile | modified | +2 −2 |
| src/backend/port/win32/security.c | added | +184 −0 |
| src/backend/port/win32/signal.c | modified | +8 −7 |
| src/backend/postmaster/postmaster.c | modified | +31 −50 |
| src/backend/tcop/postgres.c | modified | +6 −7 |
| src/backend/utils/error/assert.c | modified | +3 −3 |
| src/backend/utils/error/elog.c | modified | +35 −1 |
| src/backend/utils/misc/help_config.c | modified | +2 −2 |
| src/include/port/win32.h | modified | +5 −1 |
| src/include/utils/elog.h | modified | +11 −1 |