diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-24 00:43:26 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-24 00:43:26 +0000 |
commit | de71cda07824ec31b5ad2965879fab123d743708 (patch) | |
tree | e3f7697165fe18f325d5094671999ae6c331987a /sshd.c | |
parent | 7527f8b52dea7485f28e86778ce22e611d1cb277 (diff) |
- markus@cvs.openbsd.org 2001/03/23 14:28:32
[session.c sshd.c]
ignore SIGPIPE, restore in child, fixes x11-fwd crashes; with djm@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.177 2001/03/23 11:04:07 djm Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.178 2001/03/23 14:28:32 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -809,6 +809,9 @@ main(int ac, char **av) | |||
809 | /* Chdir to the root directory so that the current disk can be | 809 | /* Chdir to the root directory so that the current disk can be |
810 | unmounted if desired. */ | 810 | unmounted if desired. */ |
811 | chdir("/"); | 811 | chdir("/"); |
812 | |||
813 | /* ignore SIGPIPE */ | ||
814 | signal(SIGPIPE, SIG_IGN); | ||
812 | 815 | ||
813 | /* Start listening for a socket, unless started from inetd. */ | 816 | /* Start listening for a socket, unless started from inetd. */ |
814 | if (inetd_flag) { | 817 | if (inetd_flag) { |