summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-24 00:43:26 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-24 00:43:26 +0000
commitde71cda07824ec31b5ad2965879fab123d743708 (patch)
treee3f7697165fe18f325d5094671999ae6c331987a /sshd.c
parent7527f8b52dea7485f28e86778ce22e611d1cb277 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index a12e9211f..0ac78cbaf 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.177 2001/03/23 11:04:07 djm Exp $"); 43RCSID("$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) {