aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-05 18:38:07 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-05 18:38:07 +0000
commit4e512f1062ec976dd72b8f21c129070025b1f8b4 (patch)
treed4361d46c99c980b9fca8a8646e0db1aaeca0cd2 /shell
parent3958e0a151acbbf21806654fe58af24dbfb372c8 (diff)
downloadbusybox-4e512f1062ec976dd72b8f21c129070025b1f8b4.tar.gz
fix Bug 659 as reported by Robin Getz
Diffstat (limited to 'shell')
-rw-r--r--shell/msh.c4
1 files changed, 4 insertions, 0 deletions
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)