This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients vinay.sajip, vishvananda
Date 2014-06-14.09:16:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402737374.25.0.77581015624.issue21742@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-14 09:16:14vinay.sajipsetrecipients: + vinay.sajip, vishvananda
2014-06-14 09:16:14vinay.sajipsetmessageid: <1402737374.25.0.77581015624.issue21742@psf.upfronthosting.co.za>
2014-06-14 09:16:14vinay.sajiplinkissue21742 messages
2014-06-14 09:16:13vinay.sajipcreate