From: Ian Leitch on
Hey,

I've been using rb_trap_pending/rb_trap_exec in 1.8 to safely
interrupt the process at a point where I can allocate objects without
upsetting the GC. These have been removed in 1.9 and I don't see
anything similar? What's the safe way to interrupt a 1.9 process?

Cheers
Ian