From fd75648fc28fa662681d522410a6963ff85a3b43 Mon Sep 17 00:00:00 2001 From: vapier Date: Fri, 5 May 2006 18:38:07 +0000 Subject: fix Bug 659 as reported by Robin Getz git-svn-id: svn://busybox.net/trunk/busybox@15011 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- shell/msh.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3-55-g6feb