mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
SIGCHLD is a more portable name than SIGCLD (OSX has no SIGCLD).
This commit is contained in:
parent
d8fec5ff08
commit
c6637a507a
1 changed files with 1 additions and 1 deletions
|
@ -2,5 +2,5 @@ import signal, subprocess, sys
|
|||
# On Linux this causes os.waitpid to fail with OSError as the OS has already
|
||||
# reaped our child process. The wait() passing the OSError on to the caller
|
||||
# and causing us to exit with an error is what we are testing against.
|
||||
signal.signal(signal.SIGCLD, signal.SIG_IGN)
|
||||
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
|
||||
subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue