diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-10 06:47:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 06:47:22 (GMT) |
commit | 81ed53784608d44a8d196ad52288b55c7bf665db (patch) | |
tree | c54597bd77fd5ee93ab9de9b2173a666c1a42e06 /Lib/asyncio/transports.py | |
parent | 418d60a52579b6847776db3e354a8660b26dc752 (diff) | |
download | cpython-81ed53784608d44a8d196ad52288b55c7bf665db.zip cpython-81ed53784608d44a8d196ad52288b55c7bf665db.tar.gz cpython-81ed53784608d44a8d196ad52288b55c7bf665db.tar.bz2 |
bpo-30320: test_eintr now uses pthread_sigmask() (#1523) (#1524)
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 211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f)
Diffstat (limited to 'Lib/asyncio/transports.py')
0 files changed, 0 insertions, 0 deletions