]> git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Python/Python-2.7.2/Lib/test/subprocessdata/sigchild_ignore.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / subprocessdata / sigchild_ignore.py
1 import signal, subprocess, sys
2 # On Linux this causes os.waitpid to fail with OSError as the OS has already
3 # reaped our child process. The wait() passing the OSError on to the caller
4 # and causing us to exit with an error is what we are testing against.
5 signal.signal(signal.SIGCHLD, signal.SIG_IGN)
6 subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait()