File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1010 *
1111 *
1212 * IDENTIFICATION
13- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.97 1998/09/01 04:31:21 momjian Exp $
13+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.98 1998/11/29 01:51:56 tgl Exp $
1414 *
1515 * NOTES
1616 *
@@ -1289,10 +1289,14 @@ BackendStartup(Port *port)
12891289 }
12901290
12911291 /*
1292- * Flush all stdio channels just before fork, to avoid double-output
1293- * problems.
1292+ * Flush stdio channels just before fork, to avoid double-output problems.
1293+ * Ideally we'd use fflush(NULL) here, but there are still a few non-ANSI
1294+ * stdio libraries out there (like SunOS 4.1.x) that coredump if we do.
1295+ * Presently stdout and stderr are the only stdio output channels used
1296+ * by the postmaster, so fflush'ing them should be sufficient.
12941297 */
1295- fflush (NULL );
1298+ fflush (stdout );
1299+ fflush (stderr );
12961300
12971301 if ((pid = fork ()) == 0 )
12981302 { /* child */
You can’t perform that action at this time.
0 commit comments