From: Eric Wong Date: 2018-06-25T01:58:25+00:00 Subject: [ruby-core:87627] Re: [Ruby trunk Bug#14867] Process.wait can wait for MJIT compiler process > Shall I commit? Well, it works well only for good C extensions and programs which avoids NFS or slow HDD in the main thread. However, handling SIGCHLD in timer-thread will have the advantage of working well even when main thread is stuck in an uninterruptible state. So maybe I will retry moving waitpid to work in timer-thread as I mentioned [ruby-core:87621]. That will allow waitpid to function in sub-Threads if the main thread is stuck in 'D' state. The race conditions with timer-thread can be avoided with futex in Linux and pipe on other OSes. Or maybe use interrupt_lock like native_sleep for thread_pthread.c Unsubscribe: