commit | 5c66d06104db468908598d276062fc50f542a17a | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Tue Jun 26 23:16:31 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Tue Jun 26 23:16:31 2001 +0000 |
tree | 8a80a5e2e0c69b0ef682bed7f96390b05ef8d9bb | |
parent | 0392b8638e7e75b7d5979143f812a9bf08ef501b [diff] [blame] |
Explicitly call setsid()
diff --git a/shell/hush.c b/shell/hush.c index f70074f..34dc277 100644 --- a/shell/hush.c +++ b/shell/hush.c
@@ -2555,6 +2555,7 @@ signal(SIGCHLD, sigchld_handler); /* Put ourselves in our own process group. */ + setsid(); shell_pgrp = getpid (); setpgid (shell_pgrp, shell_pgrp);