summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-09-04 08:53:54 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2018-09-04 08:53:54 (GMT)
commitec74d187f50a8a48f94eb37023300583fbd644cc (patch)
tree718f782542818ce6062448a35f99388511fb1e56 /Modules
parente9ba3705de656215d52b8f8f4a2e7ad60190e944 (diff)
downloadcpython-ec74d187f50a8a48f94eb37023300583fbd644cc.zip
cpython-ec74d187f50a8a48f94eb37023300583fbd644cc.tar.gz
cpython-ec74d187f50a8a48f94eb37023300583fbd644cc.tar.bz2
bpo-33613, test_semaphore_tracker_sigint: fix race condition (#7850)
Fail `test_semaphore_tracker_sigint` if no warnings are expected and one is received. Fix race condition when the child receives SIGINT before it can register signal handlers for it. The race condition occurs when the parent calls `_semaphore_tracker.ensure_running()` (which in turn spawns the semaphore_tracker using `_posixsubprocess.fork_exec`), the child registers the signal handlers and the parent tries to kill the child. What seem to happen is that in some slow systems, the parent sends the signal to kill the child before the child protects against the signal.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions