At Sat, 15 Dec 2001 10:51:34 +0900,
nobu.nokada / softhome.net wrote:
>   def ignore(exc)
>     yield
>   rescue exc
>   end

Alternative.

  def Exception.ignored
    yield
  rescue self
  end

  trap(:SIGCHLD) do
    Errno::ECHILD.ignored do
      nil while (pid = Process.waitpid(-1, Process::WNOHANG))
    end
  end


Nobu Nakada