From: Ben Darnell Date: Mon, 8 Oct 2012 02:11:37 +0000 (-0700) Subject: Actually use add_callback_from_signal from the SIGCHLD handler. X-Git-Tag: v3.0.0~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d1746a26a0856b629d277900f4a0ee68d0b58f;p=thirdparty%2Ftornado.git Actually use add_callback_from_signal from the SIGCHLD handler. --- diff --git a/tornado/process.py b/tornado/process.py index ebd0d90bb..9e048c193 100644 --- a/tornado/process.py +++ b/tornado/process.py @@ -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