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 <dvlasenk@redhat.com>
This commit is contained in:
parent
f44cce48bb
commit
f0a5f6d710
1
defs.h
1
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
|
||||
|
2
strace.c
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user