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 /shell | |
parent | 4d00129d0ff85a4e437212f2a6840eb932017890 (diff) | |
download | busybox-w32-7040ecc993a2e163a7e683c1624aa4190f3c4aec.tar.gz busybox-w32-7040ecc993a2e163a7e683c1624aa4190f3c4aec.tar.bz2 busybox-w32-7040ecc993a2e163a7e683c1624aa4190f3c4aec.zip |
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
Oleynik
Diffstat (limited to 'shell')
-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) | |||
5995 | mflag = 0; | 5995 | mflag = 0; |
5996 | return; | 5996 | return; |
5997 | } | 5997 | } |
5998 | if (initialpgrp == -1) | 5998 | if (initialpgrp == getpgrp()) |
5999 | initialpgrp = getpgrp(); | 5999 | break; |
6000 | else if (initialpgrp != getpgrp()) { | 6000 | killpg(0, SIGTTIN); |
6001 | killpg(initialpgrp, SIGTTIN); | 6001 | } while (1); |
6002 | continue; | ||
6003 | } | ||
6004 | } while (0); | ||
6005 | setsignal(SIGTSTP); | 6002 | setsignal(SIGTSTP); |
6006 | setsignal(SIGTTOU); | 6003 | setsignal(SIGTTOU); |
6007 | setsignal(SIGTTIN); | 6004 | setsignal(SIGTTIN); |