diff options
author | green <green@FreeBSD.org> | 2001-01-06 21:15:07 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-01-06 21:15:07 +0000 |
commit | a121b36822dd039eccaad564e45b3442decd0697 (patch) | |
tree | 97f0cdf6c8fc1a0bb31d785904dc74d12549ab4d | |
parent | e85856e946310e2c3abfbdd2526466a6c73643f3 (diff) | |
download | FreeBSD-src-a121b36822dd039eccaad564e45b3442decd0697.zip FreeBSD-src-a121b36822dd039eccaad564e45b3442decd0697.tar.gz |
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.
-rw-r--r-- | crypto/openssh/sshd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c index 671a506..6dcc066 100644 --- a/crypto/openssh/sshd.c +++ b/crypto/openssh/sshd.c @@ -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 |