Check for ZOMBIE flag with findproc
This commit is contained in:
parent
bf3f53be27
commit
b1ca4d2d42
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue