Remove needless uses of std::flush in the parent process after a
authorDan Gohman <gohman@apple.com>
Wed, 5 Aug 2009 00:17:00 +0000 (00:17 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 5 Aug 2009 00:17:00 +0000 (00:17 +0000)
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

lib/System/Unix/Program.inc

index 43a3e7f28339318ca3ad9749cf348e3833153843..a4a769c2b16047dc6298bd89116aca1fc3292269 100644 (file)
@@ -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;