Subject: CVS commit: src/usr.bin/telnet
To: None <source-changes@NetBSD.org>
From: john heasley <heas@netbsd.org>
List: source-changes
Date: 03/20/2004 23:26:05
Module Name:	src
Committed By:	heas
Date:		Sat Mar 20 23:26:05 UTC 2004

Modified Files:
	src/usr.bin/telnet: commands.c externs.h network.c sys_bsd.c telnet.c
	    terminal.c

Log Message:
- deal with a dead tty in ttyflush() by cleaning-up and exiting instead of
  returning a failure code and processing that all the way up the stack.
- deal with a dead peer similarly and do it without setjmp/longjmp() (at
  christos' request).

These fix bin/20304 and my own observations when the remote abruptly closes
the connection.


To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 src/usr.bin/telnet/commands.c
cvs rdiff -r1.30 -r1.31 src/usr.bin/telnet/externs.h \
    src/usr.bin/telnet/sys_bsd.c
cvs rdiff -r1.16 -r1.17 src/usr.bin/telnet/network.c
cvs rdiff -r1.27 -r1.28 src/usr.bin/telnet/telnet.c
cvs rdiff -r1.13 -r1.14 src/usr.bin/telnet/terminal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.