Subject: bin/20304: Telnet fails to properly handle SIGPIPE on its terminal.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marcolz@asrai.stack.nl, jwk@asrai.stack.nl, dean@asrai.stack.nl>
List: netbsd-bugs
Date: 02/11/2003 16:10:04
>Number:         20304
>Category:       bin
>Synopsis:       Telnet fails to properly handle SIGPIPE on its terminal.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 11 16:10:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Olzheim, Jan Willem Knopper, Dean Strik.
>Release:        NetBSD 1.5.1
>Organization:
M.C.G.V. Stack
>Environment:
System: NetBSD asrai.stack.nl 1.6_BETA2 NetBSD 1.6_BETA2 (BRIAN) #2: Mon Jun 24 17:04:39 CEST 2002 brian@asrai.stack.nl:/usr/src/sys/arch/sparc/compile/BRIAN sparc


>Description:
	When telnet's terminal-output is a pipe and when that pipe is
	closed, before telnet has flushed it's buffer, it will endlessly
	keep trying to flush it anyway, resulting in an 100% cpu eating
	telnet.
>How-To-Repeat:
	telnet 0 25 | grep -q .
>Fix:
	See http://www.freebsd.org/cgi/query-pr.cgi?pr=45995.
>Release-Note:
>Audit-Trail:
>Unformatted: