From 15d1746a26a0856b629d277900f4a0ee68d0b58f Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 7 Oct 2012 19:11:37 -0700 Subject: [PATCH] Actually use add_callback_from_signal from the SIGCHLD handler. --- tornado/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/process.py b/tornado/process.py index ebd0d90b..9e048c19 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