mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT)
(RUBY_VM_SET_FINALIZER_INTERRUPT, RUBY_VM_SET_TRAP_INTERRUPT) (RUBY_VM_INTERRUPTED): use enum symbol instead of immediate value. * thread.c (thread_join_m, rb_threadptr_execute_interrupts): ditto. * signal.c (signal_exec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58543f00b6
commit
66e2e6ee69
4 changed files with 27 additions and 11 deletions
2
signal.c
2
signal.c
|
@ -627,7 +627,7 @@ signal_exec(VALUE cmd, int safe, int sig)
|
|||
volatile unsigned long old_interrupt_mask = cur_th->interrupt_mask;
|
||||
int state;
|
||||
|
||||
cur_th->interrupt_mask |= 0x08;
|
||||
cur_th->interrupt_mask |= TRAP_INTERRUPT_MASK;
|
||||
TH_PUSH_TAG(cur_th);
|
||||
if ((state = EXEC_TAG()) == 0) {
|
||||
VALUE signum = INT2NUM(sig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue