aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-03-09 16:05:47 +1300
committerGitHub <noreply@github.com>2023-03-09 16:05:47 +1300
commit1658e7d96696a656d9bd0a0c84c82cde86914ba2 (patch)
tree8557b08cb8650da57dc69457c6aab1918fb75c45 /thread_pthread.c
parentea8b5e7359cf88ce02f30d6ac4beb6e4cb6dcb78 (diff)
downloadruby-1658e7d96696a656d9bd0a0c84c82cde86914ba2.tar.gz
Remove SIGCHLD `waidpid`. (#7476)
* Remove `waitpid_lock` and related code. * Remove un-necessary test. * Remove `rb_thread_sleep_interruptible` dead code.
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 9723a5f6b4..c523509b9f 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -348,7 +348,6 @@ do_gvl_timer(struct rb_thread_sched *sched, rb_thread_t *th)
sched->timer_err = native_cond_timedwait(&th->nt->cond.readyq, &sched->lock, &abs);
ubf_wakeup_all_threads();
- ruby_sigchld_handler(vm);
if (UNLIKELY(rb_signal_buff_size())) {
if (th == vm->ractor.main_thread) {
@@ -2359,7 +2358,6 @@ native_sleep(rb_thread_t *th, rb_hrtime_t *rel)
THREAD_BLOCKING_END(th);
rb_sigwait_fd_put(th, sigwait_fd);
- rb_sigwait_fd_migrate(th->vm);
}
else if (th == th->vm->ractor.main_thread) { /* always able to handle signals */
native_ppoll_sleep(th, rel);