]> granicus.if.org Git - python/commitdiff
SIGCHLD is a more portable name than SIGCLD (OSX has no SIGCLD).
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 14 Dec 2010 18:20:45 +0000 (18:20 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 14 Dec 2010 18:20:45 +0000 (18:20 +0000)
Lib/test/subprocessdata/sigchild_ignore.py

index 1d03303e447e2987c08584fad24bdbc9d409ab0a..6072aece28a89001e37987af2d539dff0c5498b9 100644 (file)
@@ -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()