summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 58bd08b81f..4607edeedf 100644
--- a/process.c
+++ b/process.c
@@ -2103,7 +2103,7 @@ rb_exec(const struct rb_exec_arg *e)
static int
rb_exec_atfork(void* arg)
{
- rb_thread_atfork();
+ rb_thread_atfork_before_exec();
return rb_exec(arg);
}
#endif