summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-05 00:17:00 +0000
committerDan Gohman <gohman@apple.com>2009-08-05 00:17:00 +0000
commit2cd498be602cea6dccbcb2f3c6d1427945fa4b4d (patch)
treed80f7afca437de0b24dd6e51c215f577461f7dbb
parent84e99f3c2543eb47262a0e79b04a3834bc50a468 (diff)
downloadllvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.tar.gz
llvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.tar.bz2
llvm-2cd498be602cea6dccbcb2f3c6d1427945fa4b4d.tar.xz
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
-rw-r--r--lib/System/Unix/Program.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index 43a3e7f283..a4a769c2b1 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;