summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorGlenn L McGrath2003-01-06 16:27:07 +0000
committerGlenn L McGrath2003-01-06 16:27:07 +0000
commit7040ecc993a2e163a7e683c1624aa4190f3c4aec (patch)
tree2dcde3670846b429285f078cc2547835279440b8 /shell/ash.c
parent4d00129d0ff85a4e437212f2a6840eb932017890 (diff)
downloadbusybox-7040ecc993a2e163a7e683c1624aa4190f3c4aec.zip
busybox-7040ecc993a2e163a7e683c1624aa4190f3c4aec.tar.gz
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
Oleynik
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 97a28b1..01a02d3 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);