From: Quintus Date: 2012-05-10T00:51:43+09:00 Subject: Re: Hooking into the VM's shutdown process Am 09.05.2012 17:44, schrieb Darryl L. Pierce: > I've got a native extension that needs to run in a thread separate > from the Ruby VM. But the problem is that I can't find a way to signal > that process that it needs to stop running when the Ruby VM shuts > down. IOW, I need a way to hook into the Ruby VM's shutdown process so > I can notify this thread to exit. > > Any clue on how to do this? > Probably you could write a C function to do the notification, then bridge that C function over to Ruby, and from there call it inside an #at_exit handler? Vale, Marvin