mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Make as sure as we can that the forked child does not return and
continue the tests.
This commit is contained in:
parent
ed648a25bd
commit
1d1394e660
1 changed files with 15 additions and 12 deletions
|
@ -124,6 +124,7 @@ try:
|
||||||
conn.close()
|
conn.close()
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
# child is client
|
# child is client
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
@ -136,5 +137,7 @@ try:
|
||||||
if msg <> data:
|
if msg <> data:
|
||||||
print 'parent/client mismatch'
|
print 'parent/client mismatch'
|
||||||
s.close()
|
s.close()
|
||||||
|
finally:
|
||||||
|
os._exit(1)
|
||||||
except socket.error:
|
except socket.error:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue