Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.

Oleynik
This commit is contained in:
Glenn L McGrath 2003-01-06 16:27:07 +00:00
parent 4d00129d0f
commit 7040ecc993

View File

@ -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);