From: Robert Klemme Date: 2011-03-28T23:09:41+09:00 Subject: Re: defunct process On Mon, Mar 28, 2011 at 2:40 PM, tharris tharris wrote: > I am dettaching process like below in my code however I am still getting > ruby processes showing as defunct when I do ps -aux. Why would this be > happening I thought the 'Process.detach(pid)' would take care of this or > am I mistaken? > > loop do > >  pid = fork do >    .......... >    .......... >    .......... >  end > >  Process.detach(pid) > end I don't think there is a fixed guarantee how fast the reaping occurs. It may be that the reaper thread(s) simply did not yet get CPU cycles to do their job. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/