git: 9front

Download patch

ref: 31ef4f2c6d0c30cb173b5df2717ae9e30ea4cace
parent: ec82bdc2b5db2605dc10ce8c76e7e6ede3516206
author: cinap_lenrek <cinap_lenrek@felloff.net>
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;
--