aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2001-01-06 21:15:07 +0000
committerBrian Feldman <green@FreeBSD.org>2001-01-06 21:15:07 +0000
commit39567f8ceec01a6e17ad20722579a312ba5584ad (patch)
treefd4573a446ccca3d2fa944e23cfb33fb1652addc /crypto
parent42cebaa5c08dfee175da037cea38b1ab4c44664d (diff)
downloadsrc-39567f8ceec01a6e17ad20722579a312ba5584ad.tar.gz
src-39567f8ceec01a6e17ad20722579a312ba5584ad.zip
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.
Notes
Notes: svn path=/head/; revision=70726
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/sshd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c
index 671a50678537..6dcc066b804c 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