Forum: Ruby force at_exit/ensure NOT to run

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-02-22 07:37
(Received via mailing list)
i'm trying to debug something and thought i could prevent some at_exit
ensure blocks from running by doing a

   Process::kill -9, Process::pid

but, apparently, i'm wrong.  shouldn't this work?  if not what might?


Kent S. (Guest)
on 2006-02-22 07:47
(Received via mailing list)
Have you tried Kernel#exit! ?

This topic is locked and can not be replied to.