# Rp\_trap\_pending/rb\_trap\_exec in 1.9?

**URL:** <https://www.ruby-forum.com/t/rp-trap-pending-rb-trap-exec-in-1-9/186902>\
**Category:** Ruby\
**Created:** [April 14, 2010, 2:23am UTC](https://www.ruby-forum.com/t/rp-trap-pending-rb-trap-exec-in-1-9/186902 "2010-04-14T02:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliterate](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Post date:** [April 14, 2010, 2:23am UTC](https://www.ruby-forum.com/t/rp-trap-pending-rb-trap-exec-in-1-9/186902/1 "2010-04-14T02:23:04Z")

</div>

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
