From 3aeea8fcd67fbabdf73a2af3868aa9696dfc67f5 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 10 Apr 2011 19:31:52 +0000 Subject: [PATCH] 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... --- src/microcode/uxproc.c | 5 ----- 1 file changed, 5 deletions(-) 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 (); -- 2.25.1