Don't use thread.exit_prog; let child die if EOF read
diff --git a/Demo/threads/telnet.py b/Demo/threads/telnet.py
index 5d4ae76..f63d955 100644
--- a/Demo/threads/telnet.py
+++ b/Demo/threads/telnet.py
@@ -72,7 +72,7 @@
 		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 @@
 	while 1:
 		line = sys.stdin.readline()
 ##		print 'Got:', `line`
+		if not line: break
 		s.send(line)
 
 main()