From 2cd498be602cea6dccbcb2f3c6d1427945fa4b4d 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78131 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Program.inc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 43a3e7f2833..a4a769c2b16 100644 --- a/lib/System/Unix/Program.inc +++ b/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;