mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Don't use thread.exit_prog; let child die if EOF read
This commit is contained in:
parent
3ac5b00d40
commit
dc3c53cf8d
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ def parent(s):
|
|||
if not data:
|
||||
# EOF -- exit
|
||||
sys.stderr.write( '(Closed by remote host)\n')
|
||||
thread.exit_prog(1)
|
||||
sys.exit(1)
|
||||
cleandata = ''
|
||||
for c in data:
|
||||
if opt:
|
||||
|
|
@ -108,6 +108,7 @@ def child(s):
|
|||
while 1:
|
||||
line = sys.stdin.readline()
|
||||
## print 'Got:', `line`
|
||||
if not line: break
|
||||
s.send(line)
|
||||
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue