diff --git a/mitogen/parent.py b/mitogen/parent.py index e91504ce..497135e0 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -1422,7 +1422,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)