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 4e34b3560c..0f62252cca 100644
--- a/process.c
+++ b/process.c
@@ -5742,7 +5742,7 @@ rb_daemon(int nochdir, int noclose)
#define fork_daemon() \
switch (rb_fork_ruby(NULL)) { \
case -1: return -1; \
- case 0: break; \
+ case 0: rb_thread_atfork(); break; \
default: _exit(EXIT_SUCCESS); \
}