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 b2b5caa2af..76543dbaec 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -156,6 +156,8 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
return -1; \
} while (0)
+ rb_thread_atfork_before_exec();
+
/*
* Set free from process group and controlling terminal
*/