From: Mark Slagell Date: 2002-05-05T23:29:45+09:00 Subject: Re: defunct child process neil wrote: >neil wrote: > > >>I cannot claim this the correct way, >>though it is based on some Pick Axe >>code, >> >> > >Sorry that got mangled, > > trap("CLD"){ # child finished > begin > waitpid(Process.wait, >Process::WNOHANG) > rescue StandardError > break > end > } > > and get the Procees.uid if you want to > > Or you might find it sufficient to say trap('CLD') {Process.wait2} -- Mark