/[base]
ViewVC logotype

Revision 207758


Jump to revision: Previous Next
Author: jilles
Date: Fri May 7 20:58:50 2010 UTC (14 years, 1 month ago)
Changed paths: 7
Log Message:
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


Changed paths

Path Details
Directorystable/8/contrib/telnet/ modified , props changed
Directorystable/8/contrib/telnet/telnet/commands.c modified , text changed
Directorystable/8/contrib/telnet/telnet/externs.h modified , text changed
Directorystable/8/contrib/telnet/telnet/network.c modified , text changed
Directorystable/8/contrib/telnet/telnet/sys_bsd.c modified , text changed
Directorystable/8/contrib/telnet/telnet/telnet.c modified , text changed
Directorystable/8/contrib/telnet/telnet/terminal.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27