Actually use add_callback_from_signal from the SIGCHLD handler.

This commit is contained in:
Ben Darnell 2012-10-07 19:11:37 -07:00
parent c04005b7ba
commit 15d1746a26
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class Subprocess(object):
io_loop = ioloop.IOLoop.instance()
cls._old_sigchld = signal.signal(
signal.SIGCHLD,
lambda sig, frame: io_loop.add_callback(cls._cleanup))
lambda sig, frame: io_loop.add_callback_from_signal(cls._cleanup))
cls._initialized = True
@classmethod