* process.c (internal_wait): processes counted in tcp->nclone_threads
are tcp's threads, rather than tcp's children.

Signed-off-by: Wang Chao <[email protected]>
---
 process.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/process.c b/process.c
index dadf830..bd8037e 100644
--- a/process.c
+++ b/process.c
@@ -1918,9 +1918,9 @@ int flagarg;
        if (tcp->flags & TCB_CLONE_THREAD)
                /* The children we wait for are our parent's children.  */
                got_kids = (tcp->parent->nchildren
-                           > tcp->parent->nclone_detached);
+                           > (tcp->parent->nclone_detached + 
tcp->parent->nclone_threads));
        else
-               got_kids = (tcp->nchildren > tcp->nclone_detached);
+               got_kids = (tcp->nchildren > (tcp->nclone_detached + 
tcp->nclone_threads));
 #else
        got_kids = tcp->nchildren > 0;
 #endif
-- 
1.6.5.2


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to