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 phlogistonjohn
Recipients phlogistonjohn
Date 2012-04-20.15:10:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334934610.98.0.79849823228.issue14632@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-20 15:10:11phlogistonjohnsetrecipients: + phlogistonjohn
2012-04-20 15:10:10phlogistonjohnsetmessageid: <1334934610.98.0.79849823228.issue14632@psf.upfronthosting.co.za>
2012-04-20 15:10:10phlogistonjohnlinkissue14632 messages
2012-04-20 15:10:10phlogistonjohncreate