Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't close self.file before we know we can reopen it
If file permissions change, reopening will fail, and we'll end up getting an exception, a closed self.file, and a background thread that will die next time it tries to write to the now-closed file, leaving the child process writing to a pipe until the pipe buffer fills up at some point in the future (see also bug #1).
- Loading branch information