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

GitHub noreply at github.com
Wed May 10 02:47:23 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: 81ed53784608d44a8d196ad52288b55c7bf665db
      https://github.com/python/cpython/commit/81ed53784608d44a8d196ad52288b55c7bf665db
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-05-10 (Wed, 10 May 2017)

  Changed paths:
    M Lib/test/eintrdata/eintr_tester.py

  Log Message:
  -----------
  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)




More information about the Python-checkins mailing list