diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-02-25 13:21:45 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-02-25 13:21:45 +0000 |
commit | 14f4476a881210f8d20f0552c07a6868d6ae8190 (patch) | |
tree | d11ca59e8627a29e93531b2ca96118107d942452 /clang/lib/Parse/ParseDecl.cpp | |
parent | 6d02cc8d65e88bd0fa4dd2787883f95502e26f5d (diff) | |
download | bcm5719-llvm-14f4476a881210f8d20f0552c07a6868d6ae8190.tar.gz bcm5719-llvm-14f4476a881210f8d20f0552c07a6868d6ae8190.zip |
Truncate target file for stdout and stderr
Add O_TRUNC when opening file for redirecting stdout and stderr of the
process. It is neccessary because if the file exists then on some
platform the original content is kept while it isn't overwritten by the
new data causing pollution of the saved stdout and stderr.
llvm-svn: 230492
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions