summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-07-18 13:04:20 -0500
committerMichael E Brown <mebrown@michaels-house.net>2007-07-18 13:04:20 -0500
commitec16aff9cf75d38793cc5cbe0dc338d7bfb2cb24 (patch)
tree715f83785b8e62a938d9b7175957e5c1f4bf2a80
parent490d804f5d03069091e8fa803e0b9338fd086813 (diff)
forgot to get child exit status. wait for child and set it.
-rw-r--r--mock.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mock.py b/mock.py
index 68ddf62..6ce1f4c 100644
--- a/mock.py
+++ b/mock.py
@@ -606,6 +606,7 @@ class Root:
for line in child.fromchild:
w.write(line)
w.close()
+ retval=child.wait()
os._exit( (retval & 0xFF00) >> 8 )