From: Taylor R Campbell Date: Sun, 10 Apr 2011 19:31:52 +0000 (+0000) Subject: Don't fflush stdout and stderr before forking. X-Git-Tag: 20110426-Gtk~2^2~5 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3aeea8fcd67fbabdf73a2af3868aa9696dfc67f5;p=mit-scheme.git Don't fflush stdout and stderr before forking. Not necessary; the child will never use them before exec'ing. The simpler this whole mess can be made, the better... --- diff --git a/src/microcode/uxproc.c b/src/microcode/uxproc.c index 2d5598e9a..a624fcd21 100644 --- a/src/microcode/uxproc.c +++ b/src/microcode/uxproc.c @@ -277,11 +277,6 @@ OS_make_subprocess (const char * filename, transaction_begin (); child = (process_allocate ()); - - /* Flush streams so that output won't be duplicated after the fork. */ - fflush (stdout); - fflush (stderr); - grab_signal_mask (); if (ctty_type == process_ctty_type_inherit_fg) block_jc_signals ();