From: Daniel Berger Date: 2008-04-15T21:58:03+09:00 Subject: at_exit handlers and Process.kill 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? # process_test.rb File.open("pid.txt", "w"){ |fh| fh.print Process.pid } p Process.pid sleep 1 while true at_exit { puts "AT_EXIT" } END{ puts "END" } trap("KILL"){ puts "KILLED" } # kill_test.rb pid = IO.read("pid.txt").to_i p pid Process.kill(5, pid) Dan