diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-06-26 23:16:31 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-06-26 23:16:31 +0000 |
commit | 5c66d06104db468908598d276062fc50f542a17a (patch) | |
tree | 8a80a5e2e0c69b0ef682bed7f96390b05ef8d9bb | |
parent | 0392b8638e7e75b7d5979143f812a9bf08ef501b (diff) | |
download | busybox-w32-5c66d06104db468908598d276062fc50f542a17a.tar.gz busybox-w32-5c66d06104db468908598d276062fc50f542a17a.tar.bz2 busybox-w32-5c66d06104db468908598d276062fc50f542a17a.zip |
Explicitly call setsid()
-rw-r--r-- | hush.c | 1 | ||||
-rw-r--r-- | shell/hush.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -2555,6 +2555,7 @@ static void setup_job_control() | |||
2555 | signal(SIGCHLD, sigchld_handler); | 2555 | signal(SIGCHLD, sigchld_handler); |
2556 | 2556 | ||
2557 | /* Put ourselves in our own process group. */ | 2557 | /* Put ourselves in our own process group. */ |
2558 | setsid(); | ||
2558 | shell_pgrp = getpid (); | 2559 | shell_pgrp = getpid (); |
2559 | setpgid (shell_pgrp, shell_pgrp); | 2560 | setpgid (shell_pgrp, shell_pgrp); |
2560 | 2561 | ||
diff --git a/shell/hush.c b/shell/hush.c index f70074f14..34dc277b5 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2555,6 +2555,7 @@ static void setup_job_control() | |||
2555 | signal(SIGCHLD, sigchld_handler); | 2555 | signal(SIGCHLD, sigchld_handler); |
2556 | 2556 | ||
2557 | /* Put ourselves in our own process group. */ | 2557 | /* Put ourselves in our own process group. */ |
2558 | setsid(); | ||
2558 | shell_pgrp = getpid (); | 2559 | shell_pgrp = getpid (); |
2559 | setpgid (shell_pgrp, shell_pgrp); | 2560 | setpgid (shell_pgrp, shell_pgrp); |
2560 | 2561 | ||