diff --git a/demos/benchmark/benchmark.py b/demos/benchmark/benchmark.py index ca92e715..218ab8ed 100755 --- a/demos/benchmark/benchmark.py +++ b/demos/benchmark/benchmark.py @@ -49,7 +49,7 @@ class RootHandler(RequestHandler): pass def handle_sigchld(sig, frame): - IOLoop.instance().add_callback(IOLoop.instance().stop) + IOLoop.instance().add_callback_from_signal(IOLoop.instance().stop) def main(): parse_command_line()