]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for 'cleanup: not idle: 2313' bug.
authorPhilip Homburg <philip@cs.vu.nl>
Tue, 25 Jul 2006 14:13:09 +0000 (14:13 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Tue, 25 Jul 2006 14:13:09 +0000 (14:13 +0000)
servers/pm/forkexit.c

index ac5f3d1371ee96eebb6fe176b911913a24f7accf..d12898a0fb4455cd4eab32ea4e9ce02b61ef0090 100644 (file)
@@ -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);
+               }
        }
   }