diff options
-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() signal(SIGCHLD, sigchld_handler); /* Put ourselves in our own process group. */ + setsid(); shell_pgrp = getpid (); setpgid (shell_pgrp, shell_pgrp); 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() signal(SIGCHLD, sigchld_handler); /* Put ourselves in our own process group. */ + setsid(); shell_pgrp = getpid (); setpgid (shell_pgrp, shell_pgrp); |