From: Daniel Berger Date: 2008-04-16T01:58:52+09:00 Subject: Re: at_exit handlers and Process.kill ts wrote: > Daniel Berger wrote: >>>> sleep 1 while true >>> you really think that the following line will be executed ? >> Why not? > > Try this > > > ruby -e 'sleep 1 while true; p :ok' > > > and wait that it give :ok ... Yes, Guy, I understand that. You aren't listening. How do I create an all purpose cleanup handler within a Ruby program that will fire off no matter how the script is terminated? Thanks, Dan