mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
Rewrite sigwaitinfo() and sigtimedwait() unit tests for EINTR using
pthread_sigmask() to fix a race condition between the child and the
parent process.
Remove the pipe which was used as a weak workaround against the race
condition.
sigtimedwait() is now tested with a child process sending a signal
instead of testing the timeout feature which is more unstable
(especially regarding to clock resolution depending on the platform).
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| eintr_tester.py | ||