aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-09 11:31:41 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-09 11:31:41 +0000
commit212a77ed46d73af3600756247f7c30d6c270eff1 (patch)
tree3fdac90fa7b0d433856c9f208cda027550e63712 /process.c
parent33dd5d6970489c0aef929880e8730126cc7ad4c6 (diff)
downloadruby-212a77ed46d73af3600756247f7c30d6c270eff1.tar.gz
process.c: fix outdated mjit_pause declaration
by sharing it with vm.c in internal.h. vm.c: ditto internal.h: ditto mjit.h: share more. mjit.c: make sure the third arguemnt is not used git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/process.c b/process.c
index 0c534a8a36..3c3603ad6c 100644
--- a/process.c
+++ b/process.c
@@ -148,10 +148,6 @@ static void check_uid_switch(void);
static void check_gid_switch(void);
static int exec_async_signal_safe(const struct rb_execarg *, char *, size_t);
-/* mjit.c */
-extern int mjit_enabled;
-VALUE mjit_pause(void);
-
#if 1
#define p_uid_from_name p_uid_from_name
#define p_gid_from_name p_gid_from_name
@@ -2887,7 +2883,7 @@ rb_f_exec(int argc, const VALUE *argv)
execarg_obj = rb_execarg_new(argc, argv, TRUE, FALSE);
eargp = rb_execarg_get(execarg_obj);
- if (mjit_enabled) mjit_pause(); /* do not leak children */
+ if (mjit_enabled) mjit_pause(0, NULL, Qnil); /* do not leak children */
before_exec(); /* stop timer thread before redirects */
rb_execarg_parent_start(execarg_obj);
fail_str = eargp->use_shell ? eargp->invoke.sh.shell_script : eargp->invoke.cmd.command_name;