]> Zhao Yanbai Git Server - minix.git/commitdiff
Check for ZOMBIE flag with findproc
authorBen Gras <ben@minix3.org>
Mon, 17 Oct 2005 13:20:07 +0000 (13:20 +0000)
committerBen Gras <ben@minix3.org>
Mon, 17 Oct 2005 13:20:07 +0000 (13:20 +0000)
servers/pm/misc.c

index 897fe8d1d8f4927a97c53f127e2b3c20b179df2a..75e509586836980843f0dda34dab4a6abedd663c 100644 (file)
@@ -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);