From: eregontp@... Date: 2018-06-28T11:06:02+00:00 Subject: [ruby-core:87665] [Ruby trunk Bug#14867] Process.wait can wait for MJIT compiler process Issue #14867 has been updated by Eregon (Benoit Daloze). Would it be simpler to track a set of pids created by MJIT, ignore those in waitpid() and synchronize around both creating GCC processes and when checking the result of waitpid()? Signals feel unreliable to me. ---------------------------------------- Bug #14867: Process.wait can wait for MJIT compiler process https://bugs.ruby-lang.org/issues/14867#change-72684 * Author: k0kubun (Takashi Kokubun) * Status: Open * Priority: Normal * Assignee: normalperson (Eric Wong) * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- If Ruby tries to wait for any child process, MJIT's gcc/clang process could be caught by the method call. It's not convenient for both Ruby's user and MJIT worker thread, so Process.wait and its families should somehow avoid waiting for it. ---Files-------------------------------- 0001-hijack-SIGCHLD-handler-for-internal-use.patch (13.8 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: