From: Philip Homburg Date: Tue, 25 Jul 2006 14:13:09 +0000 (+0000) Subject: Fix for 'cleanup: not idle: 2313' bug. X-Git-Tag: v3.1.3~228 X-Git-Url: http://zhaoyanbai.com/repos/pkcs11-list.html?a=commitdiff_plain;h=baa3ac585387e75e19484578213210213db68086;p=minix.git Fix for 'cleanup: not idle: 2313' bug. --- diff --git a/servers/pm/forkexit.c b/servers/pm/forkexit.c index ac5f3d137..d12898a0f 100644 --- a/servers/pm/forkexit.c +++ b/servers/pm/forkexit.c @@ -325,8 +325,10 @@ int for_trace; /* 'rmp' now points to a child to be disinherited. */ rmp->mp_parent = INIT_PROC_NR; parent_waiting = mproc[INIT_PROC_NR].mp_flags & WAITING; - if (parent_waiting && (rmp->mp_flags & ZOMBIE)) + if (parent_waiting && (rmp->mp_flags & ZOMBIE) && + rmp->mp_fs_call != PM_EXIT) { cleanup(rmp); + } } }