[Mono-dev] zombie processes on Mono

Dick Porter dick at ximian.com
Mon Nov 14 09:36:06 EST 2005

On Sun, 2005-11-13 at 01:14 -0600, Carlos Solorzano wrote:
> The code I am porting to mono is in charge of launching a lot of  
> processes, noticing when they end, launching them again, etc.
> For some reason unknown to me sometimes these processes become  
> zombies and I am almost certain that calling HasExited on a process  
> that has become a zombie returns a false. So my question is, how can  
> I get rid of or at least detect that such a process is a zombie from c#?

You can't.  A zombie process is just waiting around for someone to
wait() for it.  The runtime should be doing that wait() for you, so if
you can come up with a small test case that shows lots of zombies, or
one that shows HasExited returning false for zombie processes please add
it to bugzilla.

- Dick

More information about the Mono-devel-list mailing list