Remove write-only nzombies member from struct tcb
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 21 Jun 2011 13:34:40 +0000 (15:34 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 21 Jun 2011 13:34:40 +0000 (15:34 +0200)
* 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 <dvlasenk@redhat.com>
defs.h
strace.c

diff --git a/defs.h b/defs.h
index 75b002dc7157d410cc0bc7e43420493e62ea8c79..d340cbd59b315b254d48d3fa7032d8568a35b291 100644 (file)
--- 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
index 93e6d29fb90446bf1371247d26baf917a2c99100..6fb6fd6eb610d35e1e28ac65e471e0760a7a5549 100644 (file)
--- 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