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 vstinner
Recipients neologix, pitrou, vstinner
Date 2011-06-19.21:08:50
SpamBayes Score 0.0003097354
Marked as misclassified No
Message-id <1308517732.02.0.248465302216.issue12363@psf.upfronthosting.co.za>
In-reply-to
Content
I tried to patch the test to use a semaphore, but my patch was not reliable (don't remove completly the race condition).

Here is a patch using a subprocess to:
 - have only one thread
 - have a timeout on the blocking read (select cannot be used in the test, select always fail with EINTR, the kernel doesn't restart it)
 - not touch signal handling of the parent process

It is also based on time: it uses alarm() to raise a signal in one second, and use an hardcoded timeout of 3 seconds. But it doesn't need tricky synchronization between two processes.
History
Date User Action Args
2011-06-19 21:08:52vstinnersetrecipients: + vstinner, pitrou, neologix
2011-06-19 21:08:52vstinnersetmessageid: <1308517732.02.0.248465302216.issue12363@psf.upfronthosting.co.za>
2011-06-19 21:08:51vstinnerlinkissue12363 messages
2011-06-19 21:08:51vstinnercreate