mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use rb_fork
to suppress deprecated-declarations warnings
This commit is contained in:
parent
b93d554be9
commit
f6d4d73abd
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue