summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 1d7aac6817..800e75959b 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -166,6 +166,8 @@ chfunc(void *data)
struct exec_info arg;
int status;
+ rb_thread_atfork_before_exec();
+
/*
* Set free from process group and controlling terminal
*/