[llvm-commits] [llvm] r78131 - /llvm/trunk/lib/System/Unix/Program.inc

Dan Gohman gohman at apple.com
Tue Aug 4 17:17:00 PDT 2009


Author: djg
Date: Tue Aug  4 19:17:00 2009
New Revision: 78131

URL: http://llvm.org/viewvc/llvm-project?rev=78131&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/System/Unix/Program.inc

Modified: llvm/trunk/lib/System/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=78131&r1=78130&r2=78131&view=diff

==============================================================================
--- llvm/trunk/lib/System/Unix/Program.inc (original)
+++ llvm/trunk/lib/System/Unix/Program.inc Tue Aug  4 19:17:00 2009
@@ -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 @@
       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;





More information about the llvm-commits mailing list