From b1ca4d2d42556c49ae9a17f80a48d4d1525a2411 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 17 Oct 2005 13:20:07 +0000 Subject: [PATCH] Check for ZOMBIE flag with findproc --- servers/pm/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);