From 3b80aa0156e694e8204228ef0dd0639d77997dbf Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 8 Jun 2009 19:45:39 +0000 Subject: [PATCH] * fork.cc (frok::parent): Remove ancient code erroneously flushing stdout descriptor. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fork.cc | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 408df09b7..b1fd66444 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-06-08 Corinna Vinschen + + * fork.cc (frok::parent): Remove ancient code erroneously flushing + stdout descriptor. + 2009-06-08 Corinna Vinschen * cygerrno.h (save_errno::~save_errno): Set errno directly to avoid diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index 3692a7a54..6911da5cd 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -307,10 +307,6 @@ frok::parent (volatile char * volatile stack_here) in the parent and, when the stack is copied, in the child. */ load_dlls = dlls.reload_on_fork && dlls.loaded_dlls; - /* This will help some of the confusion. */ - /* FIXME: Is this really appropriate? What if stdout is closed? */ - fflush (stdout); - forker_finished = CreateEvent (&sec_all, FALSE, FALSE, NULL); if (forker_finished == NULL) {