summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
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) {