Message220540
There *is* a race condition with WatchedFileHandler - see #14632 - but there is not much that can be done about it (see the various comments in that issue). BTW, I wasn't able to reproduce the threading problem from your script: there were no errors and the file 'foo' contained three lines with 'foo', as expected.
Your suggested fix doesn't seem right, either - the problem is that a failed _open() leaves a closed stream in self.stream, and the correct fix is to set this to None in case the _open fails. But thanks for the suggestion. |
|
Date |
User |
Action |
Args |
2014-06-14 09:16:14 | vinay.sajip | set | recipients:
+ vinay.sajip, vishvananda |
2014-06-14 09:16:14 | vinay.sajip | set | messageid: <1402737374.25.0.77581015624.issue21742@psf.upfronthosting.co.za> |
2014-06-14 09:16:14 | vinay.sajip | link | issue21742 messages |
2014-06-14 09:16:13 | vinay.sajip | create | |
|