Defunct process

Hi

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

On Mon, Mar 28, 2011 at 2:40 PM, tharris tharris [email protected]
wrote:


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

Can you explain a bit what reaping is, thanks