Commit 0ebe9d1e authored by Jason Madden's avatar Jason Madden

Skip sigchld test on windows [skip ci]

parent 20cd54fc
......@@ -15,18 +15,19 @@ def handle(*args):
# This is the opposite of gunicorn.
os.waitpid(-1, os.WNOHANG)
# The signal watcher must be installed *before* monkey patching
signal.signal(signal.SIGCHLD, handle)
if hasattr(signal, 'SIGCHLD'):
signal.signal(signal.SIGCHLD, handle)
pid = os.fork()
pid = os.fork()
if pid: # parent
if pid: # parent
try:
_, stat = os.waitpid(pid, 0)
except OSError:
# Interrupted system call
_, stat = os.waitpid(pid, 0)
assert stat == 0, stat
else:
else:
import gevent.monkey
gevent.monkey.patch_all()
signal.signal(signal.SIGCHLD, signal.SIG_DFL)
......@@ -40,3 +41,5 @@ else:
f.close()
sys.exit(0)
else:
print("No SIGCHLD, not testing")
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