ref: 9fcce48b3859f3aa5a784efba460ad2b090bf7a8
parent: 4a80d9d029891e056a7badeeea8e3b588efd694b
author: cinap_lenrek <[email protected]>
date: Sun Feb 23 13:58:06 EST 2020
kernel: avoid selecting the boot process in killbig()
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -1548,7 +1548,7 @@
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;