From: Mike Frysinger Date: Fri, 5 May 2006 18:39:12 +0000 (-0000) Subject: fix Bug 659 as reported by Robin Getz X-Git-Tag: 1_1_3~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a3d25e370e72ddd92a9e759481c0f25c2b82fdc;p=oweals%2Fbusybox.git fix Bug 659 as reported by Robin Getz --- diff --git a/shell/msh.c b/shell/msh.c index b3bb06b28..4fe80fd75 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -3026,6 +3026,10 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp) if (resetsig) { signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); + } else { + /* put non-interactive processes into a different process group. + * we don't support jobs, but this is at least sane: see Bug 659 */ + setpgrp(); } if (t->type == TPAREN)