From: Glenn L McGrath Date: Mon, 6 Jan 2003 16:27:07 +0000 (-0000) Subject: Minor cleanup, identified by Stewart Brodie, patch by Vladimir N. X-Git-Tag: 1_00_pre1~255 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7040ecc993a2e163a7e683c1624aa4190f3c4aec;p=oweals%2Fbusybox.git Minor cleanup, identified by Stewart Brodie, patch by Vladimir N. Oleynik --- 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);