diff --git a/mitogen/parent.py b/mitogen/parent.py index 6e30b1c6..0f7ab2a7 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -1423,7 +1423,7 @@ class Connection(object): def _first_stage(): R,W=os.pipe() r,w=os.pipe() - if os.fork(): + if os.fork()==0: os.dup2(0,100) os.dup2(R,0) os.dup2(r,101)