Kaydet (Commit) 31d04f21 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

SIGCHLD is a more portable name than SIGCLD. (OSX has no SIGCLD)

üst ec07331e
...@@ -2,5 +2,5 @@ import signal, subprocess, sys ...@@ -2,5 +2,5 @@ import signal, subprocess, sys
# On Linux this causes os.waitpid to fail with OSError as the OS has already # 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 # 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. # 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() subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment