From owner-cvs-src-old@FreeBSD.ORG Fri May 7 20:59:00 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6ACE106566B for ; Fri, 7 May 2010 20:59:00 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id D48748FC1D for ; Fri, 7 May 2010 20:59:00 +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 o47Kx06x072528 for ; Fri, 7 May 2010 20:59:00 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o47Kx0Yg072527 for cvs-src-old@freebsd.org; Fri, 7 May 2010 20:59:00 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201005072059.o47Kx0Yg072527@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 7 May 2010 20:58:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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: Fri, 07 May 2010 20:59:01 -0000 jilles 2010-05-07 20:58:50 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) contrib/telnet/telnet commands.c externs.h network.c sys_bsd.c telnet.c terminal.c Log: SVN rev 207758 on 2010-05-07 20:58:50Z 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.22.2 +1 -2 src/contrib/telnet/telnet/commands.c 1.11.10.2 +0 -1 src/contrib/telnet/telnet/externs.h 1.7.34.2 +1 -1 src/contrib/telnet/telnet/network.c 1.12.34.2 +1 -9 src/contrib/telnet/telnet/sys_bsd.c 1.16.22.2 +0 -1 src/contrib/telnet/telnet/telnet.c 1.7.34.2 +14 -2 src/contrib/telnet/telnet/terminal.c