From 7040ecc993a2e163a7e683c1624aa4190f3c4aec Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 6 Jan 2003 16:27:07 +0000 Subject: Minor cleanup, identified by Stewart Brodie, patch by Vladimir N. Oleynik --- shell/ash.c | 11 ++++------- 1 file 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); -- cgit v1.2.3