???? ??????
10/15/2006 8:27:00 PM
On Oct 16, 2006, at 12:01 AM, Justin Bonnar wrote:
> I'm writting a wrapper for a C library[1] and need to perform some
> clean-up when the Ruby process exists. In my Init function, I
> create a
> C global variable that needs to be explicitly freed after the garbage
> collector has finished cleaning up all Ruby objects. How should
> this be
> done?
>
As far as I understand, there is not such handler. However, You may
register
global object, that will be destroyed when ruby exits. This global
object
will start your cleaner.