Explicitly call setsid()

This commit is contained in:
Eric Andersen committed 2001-06-26 23:16:31 +00:00
1 parent 0392b8638e
commit 5c66d06104
2 files changed
+2

No files matched your search

+1
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);
+1
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);