summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index ad0b6ffda3..6bd0037d22 100644
--- a/io.c
+++ b/io.c
@@ -3671,7 +3671,7 @@ popen_exec(void *pp)
{
struct popen_arg *p = (struct popen_arg*)pp;
- rb_thread_atfork();
+ rb_thread_atfork_before_exec();
return rb_exec(p->execp);
}
#endif