fix Bug 659 as reported by Robin Getz
This commit is contained in:
parent
3958e0a151
commit
4e512f1062
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user