Rp_trap_pending/rb_trap_exec in 1.9?


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?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs