mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Revert SIGCHLD changes to diagnose CI failures. (#7517)
* Revert "Remove special handling of `SIGCHLD`. (#7482)" This reverts commit44a0711eab
. * Revert "Remove prototypes for functions that are no longer used. (#7497)" This reverts commit4dce12bead
. * Revert "Remove SIGCHLD `waidpid`. (#7476)" This reverts commit1658e7d966
. * Fix change to rjit variable name.
This commit is contained in:
parent
b27793835b
commit
ac65ce16e9
Notes:
git
2023-03-14 07:08:29 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
8 changed files with 381 additions and 8 deletions
|
@ -348,6 +348,7 @@ 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) {
|
||||
|
@ -2358,6 +2359,7 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue