diff --git a/mitogen/fork.py b/mitogen/fork.py index a247fd5b..2d82eb79 100644 --- a/mitogen/fork.py +++ b/mitogen/fork.py @@ -185,7 +185,7 @@ class Connection(mitogen.parent.Connection): pid = os.fork() if pid: childfp.close() - return Process(pid, parentfp) + return Process(pid, stdin=parentfp, stdout=parentfp) else: parentfp.close() self._wrap_child_main(childfp)