Explicitly call setsid()

This commit is contained in:
Eric Andersen 2001-06-26 23:16:31 +00:00
parent 0392b8638e
commit 5c66d06104
2 changed files with 2 additions and 0 deletions

1
hush.c
View File

@ -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);

View File

@ -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);