projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d00129
)
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 6 Jan 2003 16:27:07 +0000
(16:27 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 6 Jan 2003 16:27:07 +0000
(16:27 -0000)
Oleynik
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 97a28b1f5f8f977d76248aa200513a58f0df573d..01a02d375c85bfdc0acf53cb5e63a61d08ceaa96 100644
(file)
--- 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);