Author Pankrat
Recipients Pankrat, benjamin.peterson, jyasskin
Date 2008-03-20.01:32:48
SpamBayes Score 0.428841
Marked as misclassified No
Message-id <>
Hi, I narrowed the problem down to the creation of the error pipe in

>> errpipe_read, errpipe_write = os.pipe()
>> self._set_cloexec_flag(errpipe_write)

If I protect these two lines with a lock, I cannot reproduce the hang
anymore (tested against Python 2.5.1).

I'm not yet sure why this should be atomic (as there are no classic race
condition problems involved AFAICT).

By the way, this is on Linux:
> uname -a
Linux jade 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686
Date User Action Args
2008-03-20 01:32:52Pankratsetspambayes_score: 0.428841 -> 0.428841
recipients: + Pankrat, jyasskin, benjamin.peterson
2008-03-20 01:32:52Pankratsetspambayes_score: 0.428841 -> 0.428841
messageid: <>
2008-03-20 01:32:51Pankratlinkissue2320 messages
2008-03-20 01:32:50Pankratcreate