mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
process.c: do not run signal handler before fork
to prevent from proceeding one for MJIT while it's not safe yet. By that situation, MJIT worker could be waiting for compiler process forever http://ci.rvm.jp/results/trunk-mjit@silicon-docker/1468033 [Bug #15320] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
759cfd3bcb
commit
e205cd80d2
3 changed files with 15 additions and 6 deletions
|
@ -1506,8 +1506,9 @@ static void
|
|||
before_fork_ruby(void)
|
||||
{
|
||||
if (mjit_enabled) {
|
||||
/* avoid leaving locked mutex and units being modified for child process. */
|
||||
mjit_pause(FALSE);
|
||||
/* Avoid leaving locked mutex and units being modified for child process. Here may not be
|
||||
safe for proceeding SIGCHLD handler, so this does not allow RUBY_VM_CHECK_INTS. */
|
||||
mjit_pause_without_ints();
|
||||
}
|
||||
|
||||
before_exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue