From: Roland McGrath Date: Wed, 3 Aug 2005 11:23:43 +0000 (+0000) Subject: 2005-08-03 Roland McGrath X-Git-Tag: v4.5.18~342 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d56a656ec871341edb73358f63ee96b7d56a819a;p=strace 2005-08-03 Roland McGrath * process.c (internal_wait): Don't suspend when known child is known to be exiting already. --- diff --git a/process.c b/process.c index f9cffe42..0b34ae61 100644 --- 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;