Permalink
1 comment
on commit
sign in to comment.
Browse files
Kill the process before attempting to drain the streams
The output stream for a process is only closed once the process has quit. Gosh knows how we managed to get this to work before, but we now do this.
- Loading branch information...
Showing
with
18 additions
and 11 deletions.
This comment has been minimized.
juangjJul 13, 2017
ContributorHm... so, the reason I changed this in f58cb8f to stop reading first, and then kill the process was because ThreadSanitizer was complaining about a data race when simultaneously trying to read a stream and close it.
What was the reason for doing this the other way? Were we missing output from right before the process died?
juangj commented onJul 13, 2017
8981d39Hm... so, the reason I changed this in f58cb8f to stop reading first, and then kill the process was because ThreadSanitizer was complaining about a data race when simultaneously trying to read a stream and close it.
What was the reason for doing this the other way? Were we missing output from right before the process died?