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