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
parent
6d02cc8d
Please register or sign in to comment