Date: Fri, 7 May 2010 20:58:50 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/contrib/telnet/telnet commands.c externs.h network.c sys_bsd.c telnet.c terminal.c Message-ID: <201005072059.o47Kx0Yg072527@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005072059.o47Kx0Yg072527>
