diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-10 02:37:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 02:37:42 +0200 |
commit | 211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f (patch) | |
tree | e00d3bce60207655ec5b229bb594d2a654f8dd6c /Python/ceval.c | |
parent | 291557e2904fa149ee3d56142f41acf63c47fea3 (diff) | |
download | cpython-git-211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f.tar.gz |
bpo-30320: test_eintr now uses pthread_sigmask() (#1523)
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).
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions