Skip to content

Commit

Permalink
_seems_ to fix test flake on FreeBSD?
Browse files Browse the repository at this point in the history
  • Loading branch information
KJTsanaktsidis committed May 21, 2023
1 parent 0867588 commit 2f306cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion thread.c
Expand Up @@ -4509,7 +4509,6 @@ check_signals_nogvl(rb_thread_t *th, int sigwait_fd)
else {
threadptr_trap_interrupt(vm->ractor.main_thread);
}
ret = TRUE; /* for rb_sigwait_sleep */
}
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion thread_pthread.c
Expand Up @@ -506,7 +506,7 @@ thread_sched_to_running_common(struct rb_thread_sched *sched, rb_thread_t *th)
RB_INTERNAL_THREAD_HOOK(RUBY_INTERNAL_THREAD_EVENT_RESUMED);

if (!sched->timer) {
if (!designate_timer_thread(sched) && !ubf_threads_empty()) {
if (!designate_timer_thread(sched) && !ubf_threads_empty() && th != sigwait_th) {
rb_thread_wakeup_timer_thread(-1);
}
}
Expand Down

0 comments on commit 2f306cb

Please sign in to comment.