On 10/4/07, Bertram Scharpf <lists / bertram-scharpf.de> wrote: > > I didn't examine it thoroughly but "exit" seems to raise an > exception "SystemExit". This exception will probably not be > raised before the wait statement finishes. The default > signal handler for 'TERM' will not raise anything but rather > try to stop the whole Ruby process. > Now I notice that a ruby script that is terminated with an external 'kill -TERM' does _not_ run the at_exit() proc. Because TERM is intended to enable processes to terminate gracefully (cleaning up after themselves), this seems a bit harsh, but it seems to be standard Unix behaviour. Still, this deadlock is annoying. Thanks, Han Holl