JohnM <phlogistonj...@asynchrono.us> added the comment:

I'm attaching a patch of an emit function implementation that reduces the 
number of stats and uses fstat were we can. Using fstat should also prevent any 
races between opening the new file and stating the path in the file system.

Using this patch or something along these lines should avoid the time of check 
to time of use issues with the current version with repeated stat calls.

----------
keywords: +patch
Added file: http://bugs.python.org/file25290/watchedfilehandler.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14632>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to