зеркало из https://github.com/github/ruby.git
Use `rb_fork` to suppress deprecated-declarations warnings
This commit is contained in:
Родитель
b93d554be9
Коммит
f6d4d73abd
|
@ -9477,6 +9477,7 @@ mjit.$(OBJEXT): $(top_srcdir)/internal/file.h
|
|||
mjit.$(OBJEXT): $(top_srcdir)/internal/gc.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/hash.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/process.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/static_assert.h
|
||||
mjit.$(OBJEXT): $(top_srcdir)/internal/vm.h
|
||||
|
|
5
mjit.c
5
mjit.c
|
@ -76,6 +76,7 @@
|
|||
#include "internal/cont.h"
|
||||
#include "internal/file.h"
|
||||
#include "internal/hash.h"
|
||||
#include "internal/process.h"
|
||||
#include "internal/warnings.h"
|
||||
#include "vm_sync.h"
|
||||
#include "ractor_core.h"
|
||||
|
@ -747,7 +748,7 @@ start_mjit_compact(struct rb_mjit_unit *unit)
|
|||
rb_vm_t *vm = GET_VM();
|
||||
rb_native_mutex_lock(&vm->waitpid_lock);
|
||||
|
||||
pid_t pid = fork();
|
||||
pid_t pid = rb_fork();
|
||||
if (pid == 0) {
|
||||
rb_native_mutex_unlock(&vm->waitpid_lock);
|
||||
|
||||
|
@ -910,7 +911,7 @@ start_mjit_compile(struct rb_mjit_unit *unit)
|
|||
rb_vm_t *vm = GET_VM();
|
||||
rb_native_mutex_lock(&vm->waitpid_lock);
|
||||
|
||||
pid_t pid = fork();
|
||||
pid_t pid = rb_fork();
|
||||
if (pid == 0) {
|
||||
rb_native_mutex_unlock(&vm->waitpid_lock);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче