diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-02-23 18:58:06 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-02-23 18:58:06 +0100 |
commit | 9fcce48b3859f3aa5a784efba460ad2b090bf7a8 (patch) | |
tree | 438d4585a7d07fce4b621b0e08fab4fdefb01e16 | |
parent | 4a80d9d029891e056a7badeeea8e3b588efd694b (diff) | |
download | plan9front-9fcce48b3859f3aa5a784efba460ad2b090bf7a8.tar.xz |
kernel: avoid selecting the boot process in killbig()
-rw-r--r-- | sys/src/9/port/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index f117e0e1c..34fad478f 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -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; |