On 5/6/06, Marcus Fritzsch <fritschy@...> wrote:
> Hello everybody.
> I was looking at thing htop can do for me and found the really cool
> trace feature :) - but also noticed that when strace exits it will be
> left as zombie (several zombies if i was mad on tracing). Sure they
> finally die when htop exits, so is this intentional?
I have never noticed it, and I'm not being able to reproduce it here.
What are the exact steps to get the zombies?
> However, here's also a micro-patch for that thing:
> diff -ur ../htop-0.6/TraceScreen.c ./TraceScreen.c
> --- ../htop-0.6/TraceScreen.c 2005-12-27 23:46:23.000000000 +0100
> +++ ./TraceScreen.c 2006-05-06 23:55:56.000000000 +0200
> @@ -160,5 +160,6 @@
> ListBox_draw(lb, true);
> kill(child, SIGTERM);
> + waitpid (child, NULL, 0);
Cool. Does that fix the problem? I tested it here and it seems
harmless on my system, so if it fixes the issue, I'll apply it.
> And, by the way, thanks for the nice tool!
> Greetings from Germany, Marcus
Cheers from Brazil, :)