]> granicus.if.org Git - strace/commit
When the process stared by strace exits/terminates, forget its pid
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 7 Feb 2015 19:41:48 +0000 (19:41 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 7 Feb 2015 22:28:31 +0000 (22:28 +0000)
commit2cd488b2590dc695d98260cb13bf8188420c3a8a
tree98b77a280731fd1973b12ba1e985183d80e8d9a7
parentaa80192e79b2f49e104461148bbd745a49c74d2d
When the process stared by strace exits/terminates, forget its pid

The process stared by strace can exit/terminate only once.  When this
happens, forget its pid, so that any other event or action related to a
process with the same pid as the pid of that first process would not be
confused with that first process.

* strace.c (print_signalled, print_exited): Clear strace_child when it
equals to the given pid.
strace.c