Commit dc3c53cf authored by Guido van Rossum's avatar Guido van Rossum

Don't use thread.exit_prog; let child die if EOF read

parent 3ac5b00d
...@@ -72,7 +72,7 @@ def parent(s): ...@@ -72,7 +72,7 @@ def parent(s):
if not data: if not data:
# EOF -- exit # EOF -- exit
sys.stderr.write( '(Closed by remote host)\n') sys.stderr.write( '(Closed by remote host)\n')
thread.exit_prog(1) sys.exit(1)
cleandata = '' cleandata = ''
for c in data: for c in data:
if opt: if opt:
...@@ -108,6 +108,7 @@ def child(s): ...@@ -108,6 +108,7 @@ def child(s):
while 1: while 1:
line = sys.stdin.readline() line = sys.stdin.readline()
## print 'Got:', `line` ## print 'Got:', `line`
if not line: break
s.send(line) s.send(line)
main() main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment