[stream-refactor] fix Process constructor invocation

This commit is contained in:
David Wilson 2019-07-22 18:09:16 +01:00
parent 8e9f47a2e9
commit 4b0870aa6e
1 changed files with 1 additions and 1 deletions

View File

@ -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)