summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMike Frysinger2006-05-05 18:39:12 +0000
committerMike Frysinger2006-05-05 18:39:12 +0000
commit7a3d25e370e72ddd92a9e759481c0f25c2b82fdc (patch)
tree91034104bf18a31878e6c4fc2b8e9377a3f7e453 /shell
parentee3e57db0d309247a3a6160f1d32e74ef9e15fec (diff)
downloadbusybox-7a3d25e370e72ddd92a9e759481c0f25c2b82fdc.zip
busybox-7a3d25e370e72ddd92a9e759481c0f25c2b82fdc.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 b3bb06b..4fe80fd 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)