Author lesha
Recipients Giovanni.Bajo, avian, bobbyi, gregory.p.smith, jcea, lesha, neologix, nirai, pitrou, sbt, sdaoden, vinay.sajip, vstinner
Date 2012-06-02.02:57:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338605822.86.0.24201327575.issue6721@psf.upfronthosting.co.za>
In-reply-to
Content
1) I'm totally in favor of making the standard library safe. For that purpose, I think we should do a combination of:

a) Use file locks in logging, whenever possible.

b) Introduce LockUnsafelyReinitializedAtFork, using a generation counter, or whatever else, which can be used by the few places in the standard library that can safely deal with lock reinitialization.

2) http://docs.python.org/library/subprocess.html#module-subprocess does not actually document that preexec_fn is unsafe and in need of deprecation. New users will continue to shoot themselves in the foot.

3) I think that in addition to making the standard library safe, all other locks need to be made sane (crash or deadlock), so that we at least always avoid the option "2) continue to execute the child despite it relying on an unsafe lock".
History
Date User Action Args
2012-06-02 02:57:02leshasetrecipients: + lesha, gregory.p.smith, vinay.sajip, jcea, pitrou, vstinner, nirai, bobbyi, neologix, Giovanni.Bajo, sdaoden, sbt, avian
2012-06-02 02:57:02leshasetmessageid: <1338605822.86.0.24201327575.issue6721@psf.upfronthosting.co.za>
2012-06-02 02:57:02leshalinkissue6721 messages
2012-06-02 02:57:02leshacreate