From de71cda07824ec31b5ad2965879fab123d743708 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sat, 24 Mar 2001 00:43:26 +0000 Subject: - 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@ --- sshd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sshd.c') diff --git a/sshd.c b/sshd.c index a12e9211f..0ac78cbaf 100644 --- a/sshd.c +++ b/sshd.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.177 2001/03/23 11:04:07 djm Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.178 2001/03/23 14:28:32 markus Exp $"); #include #include @@ -809,6 +809,9 @@ main(int ac, char **av) /* Chdir to the root directory so that the current disk can be unmounted if desired. */ chdir("/"); + + /* ignore SIGPIPE */ + signal(SIGPIPE, SIG_IGN); /* Start listening for a socket, unless started from inetd. */ if (inetd_flag) { -- cgit v1.2.3