On Sun, 26 Sep 2004, Masatoshi SEKI wrote: > Hi. > > On 2004/09/26, at 3:34, Ara.T.Howard wrote: > > > any idea why this leaks memory? > > > class JobRunnerDaemon > > > def wait r > > pid, status = Process::waitpid2 r.pid, > > Process::WNOHANG|Process::WUNTRACED > > @runners.delete pid > > [pid, status] > > end > > end > > WNOHANG|WUNTRACED? How about this? > > pid, status = Process:waitpid2(r.pid) hmmm - you think sometimes nil is returned and process is never waited for? i'll test... -a