forked from OSchip/llvm-project
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. llvm-svn: 78131
This commit is contained in:
parent
e565995c65
commit
7ce1fe2d04
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue