From: Eric Andersen Date: Tue, 26 Jun 2001 23:16:31 +0000 (-0000) Subject: Explicitly call setsid() X-Git-Tag: 0_52~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c66d06104db468908598d276062fc50f542a17a;p=oweals%2Fbusybox.git Explicitly call setsid() --- diff --git a/hush.c b/hush.c index f70074f14..34dc277b5 100644 --- a/hush.c +++ b/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); 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);