From f7ccb8dd88c52b2294742c3abb87098ee4076799 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 14 Sep 2020 10:30:22 +0900 Subject: restart Ractor.select on intterupt signal can interrupt Ractor.select, but if there is no exception, Ractor.select should restart automatically. --- thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index ab574e5..6b20716 100644 --- a/thread.c +++ b/thread.c @@ -218,6 +218,12 @@ vm_check_ints_blocking(rb_execution_context_t *ec) return rb_threadptr_execute_interrupts(th, 1); } +int +rb_vm_check_ints_blocking(rb_execution_context_t *ec) +{ + return vm_check_ints_blocking(ec); +} + /* * poll() is supported by many OSes, but so far Linux is the only * one we know of that supports using poll() in all places select() -- cgit v1.1