1
0
Fork 0
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:
Jeremy Evans 2019-08-25 12:09:19 -07:00
parent 7f2cd2ae6f
commit 5c2c396685
Notes: git 2019-12-04 00:28:11 +09:00

View file

@ -693,6 +693,7 @@ thread_do_start(rb_thread_t *th)
}
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,
args_len, args_ptr,
kw_splat, VM_BLOCK_HANDLER_NONE);