src/lib/osunix.c 1.43

1.43 2009/07/10 01:52:27 markd
flush stdout before forking
Index: src/lib/osunix.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/osunix.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -b -B -U 4 -r1.42 -r1.43
--- src/lib/osunix.c	8 Jul 2009 16:24:25 -0000	1.42
+++ src/lib/osunix.c	10 Jul 2009 01:52:27 -0000	1.43
@@ -430,8 +430,9 @@
 if (inDumpStack)
     return;
 inDumpStack = TRUE;
 
+fflush(stdout);  // clear buffer before forking
 vfprintf(stderr, format, args);
 fputc('\n', stderr);
 fflush(stderr);
 pid_t ppid = getpid();