From d56a656ec871341edb73358f63ee96b7d56a819a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 3 Aug 2005 11:23:43 +0000 Subject: [PATCH] 2005-08-03 Roland McGrath * process.c (internal_wait): Don't suspend when known child is known to be exiting already. --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1