Hi,

At Wed, 18 Dec 2002 08:07:45 +0900,
Eric Schwartz wrote:
> However, every time I run this code, I get a zombie process sitting
> around, waiting for init to reap it.  If I'm running a bunch of tests,
> this can get really annoying, and clutters up the process table
> something fierce.  Any ideas on how to prevent this happening?  I
> tried nesting fork blocks, but that didn't work.  This isn't a
> ruby-specific issue, I don't think (unless it's something to do with
> forking with blocks instead of using fork()), but I've a mental block
> on where to proceed.

If you don't need the exit status, prepend this line.

  trap("CHLD") {Process.wait(-1, Process:WNOHANG)}

-- 
Nobu Nakada