From: Dave Thomas Date: 2000-08-22T14:30:49+09:00 Subject: [ruby-talk:4538] Re: Process.wait bug + fix Brian Fundakowski Feldman writes: > If your system uses the rb_waitpid() codepath of rb_f_wait(), > Process.wait will return prematurely if you have multiple child > processes. The problem is that rb_waitpid() is called only once, > when it needs to be called until a you get an ECHILD error from > rb_waitpid(). Perhaps it's late and I should waiting until morning before posting, but... I'm not sure I see the problem. Process.wait waits for _a_ child to terminate, not all children. Your patch seems to reap them all. Regards Dave