mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 16:39:31 +00:00
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:
parent
42cebaa5c0
commit
39567f8cee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70726
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user