diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-01-06 16:27:07 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-01-06 16:27:07 +0000 |
commit | 7040ecc993a2e163a7e683c1624aa4190f3c4aec (patch) | |
tree | 2dcde3670846b429285f078cc2547835279440b8 | |
parent | 4d00129d0ff85a4e437212f2a6840eb932017890 (diff) | |
download | busybox-7040ecc993a2e163a7e683c1624aa4190f3c4aec.tar.gz |
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
Oleynik
-rw-r--r-- | shell/ash.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c index 97a28b1f5..01a02d375 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -5995,13 +5995,10 @@ static void setjobctl(int enable) mflag = 0; return; } - if (initialpgrp == -1) - initialpgrp = getpgrp(); - else if (initialpgrp != getpgrp()) { - killpg(initialpgrp, SIGTTIN); - continue; - } - } while (0); + if (initialpgrp == getpgrp()) + break; + killpg(0, SIGTTIN); + } while (1); setsignal(SIGTSTP); setsignal(SIGTTOU); setsignal(SIGTTIN); |