ubf_th
appears to be unused. (#11994)
This commit is contained in:
parent
f9cd04aeac
commit
048bb1e176
Notes:
git
2024-11-07 02:29:05 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
5
thread.c
5
thread.c
@ -1529,7 +1529,6 @@ rb_nogvl(void *(*func)(void *), void *data1,
|
||||
rb_vm_t *vm = rb_ec_vm_ptr(ec);
|
||||
bool is_main_thread = vm->ractor.main_thread == th;
|
||||
int saved_errno = 0;
|
||||
VALUE ubf_th = Qfalse;
|
||||
|
||||
if ((ubf == RUBY_UBF_IO) || (ubf == RUBY_UBF_PROCESS)) {
|
||||
ubf = ubf_select;
|
||||
@ -1554,10 +1553,6 @@ rb_nogvl(void *(*func)(void *), void *data1,
|
||||
RUBY_VM_CHECK_INTS_BLOCKING(ec);
|
||||
}
|
||||
|
||||
if (ubf_th != Qfalse) {
|
||||
thread_value(rb_thread_kill(ubf_th));
|
||||
}
|
||||
|
||||
rb_errno_set(saved_errno);
|
||||
|
||||
return val;
|
||||
|
Loading…
x
Reference in New Issue
Block a user