[ruby-core:87672] Re: [Ruby trunk Bug#14867] Process.wait can wait for MJIT compiler process

From: Eric Wong <normalperson@...>
Date: 2018-06-29 01:51:29 UTC
List: ruby-core #87672
[email protected] wrote:
> 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()?

Not possible, if there's a thread running in waitpid(-1, 0),
it can steal the result of waitpid(mjit_used_by_pid).

> Signals feel unreliable to me.

Maybe there's a race condition somewhere (including kernel).

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread