summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 05:19:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 05:19:01 +0000
commit863d148a4ee862f663c23691f34807b7f2fb450c (patch)
tree28c4216dd5dc9ef256a9acf483efcc77dfced572 /process.c
parentd3e8f0fe7f432781951a3ad72a9331d027443d91 (diff)
process.c: kill threads in daemon process
* process.c (fork_daemon): kill the other threads all and abandon the kept mutexes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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); \
}