      if (!wrap) {
  	rb_secure(4);		/* should alter global state */
  	ruby_class = rb_cObject;
-@@ -9757,13 +9750,6 @@
+@@ -9757,13 +9752,6 @@
  
  extern VALUE rb_last_status;
  

 #endif
 
     rb_trap_immediate = 0;	/* inhibit interrupts from here */
+    if (th->sandbox_restore != NULL)
+    {
+      th->sandbox_restore(th);
+    }
     ruby_frame = th->frame;
     ruby_scope = th->scope;

diff -wur ruby-1.8.5/eval.c ruby-1.8.5-sandbox/eval.c
--- ruby-1.8.5/eval.c	Sun Aug  6 21:43:39 2006
+++ ruby-1.8.5-sandbox/eval.c	Sat Sep 23 21:24:30 2006
@@ -29,11 +29,6 @@
 #endif
 
