[Python-checkins] [python/cpython] 211a39: bpo-30320: test_eintr now uses pthread_sigmask() (...

GitHub noreply at github.com
Tue May 9 20:37:45 EDT 2017


 Branch: refs/heads/master
 Home: https://github.com/python/cpython
 Commit: 211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f
 https://github.com/python/cpython/commit/211a392cc15f9a7b1b8ce65d8f6c9f8237d1b77f
 Author: Victor Stinner <victor.stinner at gmail.com>
 Date: 2017年05月10日 (2017年5月10日)
 Changed paths:
 M Lib/test/eintrdata/eintr_tester.py
 Log Message:
 -----------
 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).


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /