• Pablo Galindo's avatar
    bpo-33613, test_semaphore_tracker_sigint: fix race condition (#7850) · ec74d187
    Pablo Galindo yazdı
    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.
    ec74d187
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
.vsts Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
m4 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.rst Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...