From 7ce1fe2d04e4fdc44c1d28954a27611e5c3f179f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 5 Aug 2009 00:17:00 +0000 Subject: [PATCH] Remove needless uses of std::flush in the parent process after a fork call. This eliminates a need for . Also remove needless fsync calls. llvm-svn: 78131 --- llvm/lib/System/Unix/Program.inc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc index 43a3e7f28339..a4a769c2b160 100644 --- a/llvm/lib/System/Unix/Program.inc +++ b/llvm/lib/System/Unix/Program.inc @@ -18,7 +18,6 @@ #include #include "Unix.h" -#include #if HAVE_SYS_STAT_H #include #endif @@ -214,12 +213,6 @@ Program::Execute(const Path& path, break; } - // Make sure stderr and stdout have been flushed - std::cerr << std::flush; - std::cout << std::flush; - fsync(1); - fsync(2); - Pid_ = child; return true;