Explicitly call setsid()
This commit is contained in:
parent
0392b8638e
commit
5c66d06104
1
hush.c
1
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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user