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