Skip to content

Commit

Permalink
Fix default IOLoop in Subprocess.
Browse files Browse the repository at this point in the history
Exit callbacks would fail for Subprocesses that did not explicitly
set an IOLoop.
  • Loading branch information
bdarnell committed Jun 12, 2013
1 parent 3cf9098 commit d088cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/process.py
Expand Up @@ -189,7 +189,7 @@ class Subprocess(object):
_waiting = {}

def __init__(self, *args, **kwargs):
self.io_loop = kwargs.pop('io_loop', None)
self.io_loop = kwargs.pop('io_loop', None) or ioloop.IOLoop.current()
to_close = []
if kwargs.get('stdin') is Subprocess.STREAM:
in_r, in_w = _pipe_cloexec()
Expand Down

0 comments on commit d088cb6

Please sign in to comment.