From: Ben Gras Date: Mon, 17 Oct 2005 13:20:07 +0000 (+0000) Subject: Check for ZOMBIE flag with findproc X-Git-Tag: v3.1.2a~619 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch13.html?a=commitdiff_plain;h=b1ca4d2d42556c49ae9a17f80a48d4d1525a2411;p=minix.git Check for ZOMBIE flag with findproc --- diff --git a/servers/pm/misc.c b/servers/pm/misc.c index 897fe8d1d..75e509586 100644 --- a/servers/pm/misc.c +++ b/servers/pm/misc.c @@ -120,7 +120,7 @@ PUBLIC int do_getprocnr() return(s); search_key[key_len] = '\0'; /* terminate for safety */ for (rmp = &mproc[0]; rmp < &mproc[NR_PROCS]; rmp++) { - if ((rmp->mp_flags & IN_USE) && + if (((rmp->mp_flags & (IN_USE | ZOMBIE)) == IN_USE) && strncmp(rmp->mp_name, search_key, key_len)==0) { mp->mp_reply.procnr = (int) (rmp - mproc); return(OK);