Actually use add_callback_from_signal from the SIGCHLD handler.
This commit is contained in:
parent
c04005b7ba
commit
15d1746a26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue