Project

General

Profile

« Previous | Next » 

Revision 37930

  • thread.c (struct rb_mutex_struct): add allow_trap field.
  • internal.h (rb_mutex_allow_trap): added.
  • thread.c (rb_mutex_lock, rb_mutex_unlock): check mutex->allow_trap.
  • thread.c (mutex_sleep): remove trap check because it uses rb_mutex_lock and rb_mutex_unlock internally.
  • thread.c (rb_mutex_allow_trap): new helper function for the above.

  • io.c (io_binwrite): mark fptr->write_lock as writable in trap.

  • test/ruby/test_signal.rb (test_trap_puts): test for the above.