aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-06-08 19:45:39 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-06-08 19:45:39 +0000
commit3b80aa0156e694e8204228ef0dd0639d77997dbf (patch)
treeb68f0f4bb53fc2831fb2da87d274231f00bc1dbd
parentc84bbb2d8f960ad66ed2b6737b325002c714338a (diff)
downloadnewlib-3b80aa0156e694e8204228ef0dd0639d77997dbf.zip
newlib-3b80aa0156e694e8204228ef0dd0639d77997dbf.tar.gz
newlib-3b80aa0156e694e8204228ef0dd0639d77997dbf.tar.bz2
* fork.cc (frok::parent): Remove ancient code erroneously flushing
stdout descriptor.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fork.cc4
2 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 408df09..b1fd664 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2009-06-08 Corinna Vinschen <corinna@vinschen.de>
+ * fork.cc (frok::parent): Remove ancient code erroneously flushing
+ stdout descriptor.
+
+2009-06-08 Corinna Vinschen <corinna@vinschen.de>
+
* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
flooding debug output.
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index 3692a7a..6911da5 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)
{