From owner-cvs-src-old@FreeBSD.ORG Thu May 13 15:28:48 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71F3A106566B for ; Thu, 13 May 2010 15:28:48 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (unknown [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5F2288FC0A for ; Thu, 13 May 2010 15:28:48 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o4DFSmOS023522 for ; Thu, 13 May 2010 15:28:48 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4DFSmRG023521 for cvs-src-old@freebsd.org; Thu, 13 May 2010 15:28:48 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201005131528.o4DFSmRG023521@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Thu, 13 May 2010 15:28:34 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/contrib/telnet/telnet commands.c externs.h network.c sys_bsd.c telnet.c terminal.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 15:28:48 -0000 jilles 2010-05-13 15:28:34 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) contrib/telnet/telnet commands.c externs.h network.c sys_bsd.c telnet.c terminal.c Log: SVN rev 208029 on 2010-05-13 15:28:34Z by jilles MFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE. Instead of catching SIGPIPE and jumping out of the signal handler with longjmp, ignore it and handle write errors to the local output by exiting from there. I have changed the error message to mention the local output instead of NetBSD's wrong "Connection closed by foreign host". Write errors to the network were already handled by exiting immediately and this now applies to EPIPE too. The code assumed that SIGPIPE could only be generated by the network connection; if it was generated by the local output, it would longjmp out of the signal handler and write an error message which caused another SIGPIPE. PR: 19773 Obtained from: NetBSD Revision Changes Path 1.35.10.1 +1 -2 src/contrib/telnet/telnet/commands.c 1.11.2.1 +0 -1 src/contrib/telnet/telnet/externs.h 1.7.22.1 +1 -1 src/contrib/telnet/telnet/network.c 1.12.22.1 +1 -9 src/contrib/telnet/telnet/sys_bsd.c 1.16.10.1 +0 -1 src/contrib/telnet/telnet/telnet.c 1.7.22.1 +14 -2 src/contrib/telnet/telnet/terminal.c