summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 589a1160d..0bd644777 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.240 2002/04/23 22:16:29 djm Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.241 2002/05/13 15:53:19 millert Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -1332,6 +1332,14 @@ main(int ac, char **av)
1332 /* This is the child processing a new connection. */ 1332 /* This is the child processing a new connection. */
1333 1333
1334 /* 1334 /*
1335 * Create a new session and process group since the 4.4BSD
1336 * setlogin() affects the entire process group. We don't
1337 * want the child to be able to affect the parent.
1338 */
1339 if (setsid() < 0)
1340 error("setsid: %.100s", strerror(errno));
1341
1342 /*
1335 * Disable the key regeneration alarm. We will not regenerate the 1343 * Disable the key regeneration alarm. We will not regenerate the
1336 * key since we are no longer in a position to give it to anyone. We 1344 * key since we are no longer in a position to give it to anyone. We
1337 * will not restart on SIGHUP since it no longer makes sense. 1345 * will not restart on SIGHUP since it no longer makes sense.