Forum: Ruby force at_exit/ensure NOT to run

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb48ca5059faf7409a5ab3745a964696?d=identicon&s=25 unknown (Guest)
on 2006-02-22 06:37
(Received via mailing list)
i'm trying to debug something and thought i could prevent some at_exit
and
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?

thanks.

-a
3ccecc71b9fb0a3d7f00a0bef6f0a63a?d=identicon&s=25 Kent Sibilev (Guest)
on 2006-02-22 06:47
(Received via mailing list)
Have you tried Kernel#exit! ?

--
Kent
---
http://www.datanoise.com
This topic is locked and can not be replied to.