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 f22bd15 commit 3d2aa2cCopy full SHA for 3d2aa2c
src/backend/postmaster/syslogger.c
@@ -588,8 +588,11 @@ SysLogger_Start(void)
588
errmsg("could not redirect stderr: %m")));
589
close(fd);
590
_setmode(_fileno(stderr), _O_BINARY);
591
- /* Now we are done with the write end of the pipe. */
592
- CloseHandle(syslogPipe[1]);
+ /*
+ * Now we are done with the write end of the pipe.
593
+ * CloseHandle() must not be called because the preceding
594
+ * close() closes the underlying handle.
595
+ */
596
syslogPipe[1] = 0;
597
#endif
598
redirection_done = true;
0 commit comments