summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-30 19:52:35 +0000
committerjilles <jilles@FreeBSD.org>2010-04-30 19:52:35 +0000
commit0637e80406802fa3e7dba2dd901b803b17051606 (patch)
treeceb74e0a1f9dfc1915358be873dfed663a90cc66 /bin
parent6b22e476a5f920709982cdffed9a2e1b33e847fc (diff)
downloadFreeBSD-src-0637e80406802fa3e7dba2dd901b803b17051606.zip
FreeBSD-src-0637e80406802fa3e7dba2dd901b803b17051606.tar.gz
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 MFC after: 1 week
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud