Fix a long-standing bug that resulted in a dropped session sometimes

when an X11-forwarded client was closed.  For some reason, sshd didn't
disable the SIGPIPE exit handler and died a horrible death (well, okay,
a silent death really).  Set SIGPIPE's handler to SIG_IGN.
This commit is contained in:
Brian Feldman 2001-01-06 21:15:07 +00:00
parent 42cebaa5c0
commit 39567f8cee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70726

View File

@ -1061,6 +1061,7 @@ main(int ac, char **av)
signal(SIGTERM, SIG_DFL);
signal(SIGQUIT, SIG_DFL);
signal(SIGCHLD, SIG_DFL);
signal(SIGPIPE, SIG_IGN);
/*
* Set socket options for the connection. We want the socket to