Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae7278 commit 533bd1dCopy full SHA for 533bd1d
src/backend/postmaster/syslogger.c
@@ -18,7 +18,7 @@
18
*
19
20
* IDENTIFICATION
21
- * $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.2 2004/08/06 16:00:51 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.3 2004/08/06 16:06:59 tgl Exp $
22
23
*-------------------------------------------------------------------------
24
*/
@@ -495,7 +495,8 @@ SysLogger_Start(void)
495
syslogPipe[1] = -1;
496
#else
497
fflush(stderr);
498
- if (dup2(_open_osfhandle((long)syslogPipe[1], _O_APPEND),
+ if (dup2(_open_osfhandle((long)syslogPipe[1],
499
+ _O_APPEND | _O_TEXT),
500
_fileno(stderr)) < 0)
501
ereport(FATAL,
502
(errcode_for_file_access(),
0 commit comments