Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.
Oleynik
This commit is contained in:
parent
4d00129d0f
commit
7040ecc993
11
shell/ash.c
11
shell/ash.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user