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:
k0kubun 2018-11-19 13:33:07 +00:00
parent 759cfd3bcb
commit e205cd80d2
3 changed files with 15 additions and 6 deletions

View file

@ -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();