summaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
authorEric Andersen2001-06-26 23:16:31 +0000
committerEric Andersen2001-06-26 23:16:31 +0000
commit5c66d06104db468908598d276062fc50f542a17a (patch)
tree8a80a5e2e0c69b0ef682bed7f96390b05ef8d9bb /hush.c
parent0392b8638e7e75b7d5979143f812a9bf08ef501b (diff)
downloadbusybox-5c66d06104db468908598d276062fc50f542a17a.zip
busybox-5c66d06104db468908598d276062fc50f542a17a.tar.gz
Explicitly call setsid()
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hush.c b/hush.c
index f70074f..34dc277 100644
--- a/hush.c
+++ b/hush.c
@@ -2555,6 +2555,7 @@ static void setup_job_control()
signal(SIGCHLD, sigchld_handler);
/* Put ourselves in our own process group. */
+ setsid();
shell_pgrp = getpid ();
setpgid (shell_pgrp, shell_pgrp);