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
Loading
Please sign in to comment