From: Denys Vlasenko Date: Tue, 21 Jun 2011 13:34:40 +0000 (+0200) Subject: Remove write-only nzombies member from struct tcb X-Git-Tag: v4.7~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0a5f6d7107ade2ea9c425330655e97d11d17d79;p=strace Remove write-only nzombies member from struct tcb * defs.h: Remove nzombies member from struct tcb. * strace.c (droptcb): Remove "tcp->parent->nzombies++". (alloc_tcb): Remove "tcp->nzombies = 0". Signed-off-by: Denys Vlasenko --- diff --git a/defs.h b/defs.h index 75b002dc..d340cbd5 100644 --- a/defs.h +++ b/defs.h @@ -369,7 +369,6 @@ struct tcb { /* Support for tracing forked processes */ struct tcb *parent; /* Parent of this process */ int nchildren; /* # of traced children */ - int nzombies; /* # of formerly traced children now dead */ #ifdef LINUX int nclone_threads; /* # of nchildren with CLONE_THREAD */ #endif diff --git a/strace.c b/strace.c index 93e6d29f..6fb6fd6e 100644 --- a/strace.c +++ b/strace.c @@ -1285,7 +1285,6 @@ alloc_tcb(int pid, int command_options_parsed) tcp->pid = pid; tcp->parent = NULL; tcp->nchildren = 0; - tcp->nzombies = 0; #ifdef TCB_CLONE_THREAD tcp->nclone_threads = 0; #endif @@ -1668,7 +1667,6 @@ droptcb(struct tcb *tcp) if (tcp->flags & TCB_CLONE_THREAD) tcp->parent->nclone_threads--; #endif - tcp->parent->nzombies++; #ifdef LINUX /* Update `tcp->parent->parent->nchildren' and the other fields like NCLONE_DETACHED, only for zombie group leader that has