]> granicus.if.org Git - strace/commitdiff
2005-08-03 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 3 Aug 2005 11:23:43 +0000 (11:23 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 3 Aug 2005 11:23:43 +0000 (11:23 +0000)
* process.c (internal_wait): Don't suspend when known child is known
to be exiting already.

process.c

index f9cffe42e41236d47e6897bc0220599e9cd82dd6..0b34ae61dc862c39310b2d56c772ef60ee78900f 100644 (file)
--- a/process.c
+++ b/process.c
@@ -1988,7 +1988,8 @@ int flagarg;
                                            (tcp->flags & TCB_CLONE_THREAD)
                                            ? tcp->parent :
 #endif
-                                           tcp))
+                                           tcp) ||
+                                   (child->flags & TCB_EXITING))
                                        return 0;
                        }
                        tcp->flags |= TCB_SUSPENDED;