mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check interrupts before starting thread
Fixes a hang when Thread.new calls Thread.new in a loop. Fixes [Bug #13688]
This commit is contained in:
parent
7f2cd2ae6f
commit
5c2c396685
Notes:
git
2019-12-04 00:28:11 +09:00
1 changed files with 1 additions and 0 deletions
1
thread.c
1
thread.c
|
@ -693,6 +693,7 @@ thread_do_start(rb_thread_t *th)
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_adjust_argv_kw_splat(&args_len, &args_ptr, &kw_splat);
|
rb_adjust_argv_kw_splat(&args_len, &args_ptr, &kw_splat);
|
||||||
|
vm_check_ints_blocking(th->ec);
|
||||||
th->value = rb_vm_invoke_proc(th->ec, proc,
|
th->value = rb_vm_invoke_proc(th->ec, proc,
|
||||||
args_len, args_ptr,
|
args_len, args_ptr,
|
||||||
kw_splat, VM_BLOCK_HANDLER_NONE);
|
kw_splat, VM_BLOCK_HANDLER_NONE);
|
||||||
|
|
Loading…
Reference in a new issue