From: Daniel Berger Date: 2005-09-23T13:26:39+09:00 Subject: Re: Trapping TaskManager's kill process on win32 gga wrote: > Is there a way to trap the killing of a ruby windows process killed > thru the TaskManager? > I've tried trap(INT), trap(ABRT) and trap(KILL) and none seem to > respond to kill process. You can't. Using the "end process" button on the Task Manager calls the TerminateProcess() function, which can't be trapped. Read here for more: http://blogs.msdn.com/oldnewthing/archive/2004/07/22/191123.aspx It's probably a good thing, too. Imagine if you did this: trap("KILL"){ # Do nothing } How would you kill the process short of rebooting? Regards, Dan