kernel: avoid selecting the boot process in killbig()
This commit is contained in:
parent
4a80d9d029
commit
9fcce48b38
1 changed files with 1 additions and 1 deletions
|
@ -1548,7 +1548,7 @@ killbig(char *why)
|
|||
kp = nil;
|
||||
for(i = 0; i < conf.nproc; i++) {
|
||||
p = proctab(i);
|
||||
if(p->state == Dead || p->kp)
|
||||
if(p->state == Dead || p->kp || p->parentpid == 0)
|
||||
continue;
|
||||
if((p->noswap || (p->procmode & 0222) == 0) && strcmp(eve, p->user) == 0)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue