From 56491afc7916fb24f5c4dc2c632fb93fa7063992 Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 30 Jul 2018 06:02:22 +0000 Subject: thread_pthread.c (rb_sigwait_sleep): th may be 0 from MJIT git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index e064bf71be..c4cbd77ac5 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1664,7 +1664,7 @@ rb_sigwait_sleep(rb_thread_t *th, int sigwait_fd, const struct timespec *ts) n = ppoll(&pfd, 1, to, 0); if (check_signals_nogvl(th, sigwait_fd)) return; - if (n || RUBY_VM_INTERRUPTED(th->ec)) + if (n || (th && RUBY_VM_INTERRUPTED(th->ec))) return; if (ts && timespec_update_expire(&diff, &end)) return; -- cgit v1.2.3