]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Actually use add_callback_from_signal from the SIGCHLD handler.
authorBen Darnell <ben@bendarnell.com>
Mon, 8 Oct 2012 02:11:37 +0000 (19:11 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 8 Oct 2012 02:11:37 +0000 (19:11 -0700)
tornado/process.py

index ebd0d90bb08489ab7b5383e573b469d82dde8fb5..9e048c19347dcf20192f79ff9164e68e0f13135f 100644 (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