fix Bug 659 as reported by Robin Getz

1_1_stable
Mike Frysinger 2006-05-05 18:39:12 +00:00
parent ee3e57db0d
commit 7a3d25e370
1 changed files with 4 additions and 0 deletions

View File

@ -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)