diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-05 00:17:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-05 00:17:00 +0000 |
commit | 2cd498be602cea6dccbcb2f3c6d1427945fa4b4d (patch) | |
tree | d80f7afca437de0b24dd6e51c215f577461f7dbb /lib/System/Unix | |
parent | 84e99f3c2543eb47262a0e79b04a3834bc50a468 (diff) | |
download | external_llvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.zip external_llvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.tar.gz external_llvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.tar.bz2 |
Remove needless uses of std::flush in the parent process after a
fork call. This eliminates a need for <iostream>. Also remove
needless fsync calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r-- | lib/System/Unix/Program.inc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 43a3e7f..a4a769c 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -18,7 +18,6 @@ #include <llvm/Config/config.h> #include "Unix.h" -#include <iostream> #if HAVE_SYS_STAT_H #include <sys/stat.h> #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; |