Message138664
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. |
|
Date |
User |
Action |
Args |
2011-06-19 21:08:52 | vstinner | set | recipients:
+ vstinner, pitrou, neologix |
2011-06-19 21:08:52 | vstinner | set | messageid: <1308517732.02.0.248465302216.issue12363@psf.upfronthosting.co.za> |
2011-06-19 21:08:51 | vstinner | link | issue12363 messages |
2011-06-19 21:08:51 | vstinner | create | |
|