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; mflag = 0;
return; return;
} }
if (initialpgrp == -1) if (initialpgrp == getpgrp())
initialpgrp = getpgrp(); break;
else if (initialpgrp != getpgrp()) { killpg(0, SIGTTIN);
killpg(initialpgrp, SIGTTIN); } while (1);
continue;
}
} while (0);
setsignal(SIGTSTP); setsignal(SIGTSTP);
setsignal(SIGTTOU); setsignal(SIGTTOU);
setsignal(SIGTTIN); setsignal(SIGTTIN);