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
This commit is contained in:
parent
ab47a57a46
commit
56491afc79
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user