From: Ken Bloom Date: 2008-04-16T02:10:08+09:00 Subject: Re: at_exit handlers and Process.kill On Tue, 15 Apr 2008 08:35:35 -0500, Daniel Berger wrote: > On Apr 15, 7:25 am, Tomek Paczkowski wrote: >> Daniel Berger wrote: >> > Hi all, >> >> > Ruby 1.8.6 p114 >> > OS X 10.4 >> >> > None of these handlers get picked up when I kill the >> > 'process_test.rb' program with an external program. Why not? >> >> I had to use all of them: >> >> Signal.trap("KILL") { } >> Signal.trap("EXIT") { } >> Signal.trap("TERM") { } >> Signal.trap("ABRT") { } >> >> Use Signal.list to get a list of available signals to trap on you >> machine. > > Ok, what about the at_exit handler? It will work if you put things in the right order. (See my other answer.) --Ken -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/