From: "Iñaki Baz Castillo" Date: 2009-12-27T05:07:18+09:00 Subject: Re: How to know if a process is zombie? El Sábado, 26 de Diciembre de 2009, Bertram Scharpf escribió: > Hi, > > Am Sonntag, 27. Dez 2009, 01:53:42 +0900 schrieb Iñaki Baz Castillo: > > Hi, after some forks I need to know if a process still is alive > > or not, but in case it's alive I also need to know if it's a > > zombie process (it died without Process.wait or Process.detach). > > > > Unfortunatelly I couln't find how to know it using Process module: > > > > Is there any other way to determine if a given PID is zombie? > > trap "SIGCHLD" do |sig| puts "A child became a zombie." end > > This tells you when it happened. As far as I know there is no way > to find out which process it was. I recommend waiting > (Process.waitpid) for every pid you forked. Thanks a lot. -- Iñaki Baz Castillo