diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 05:19:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 05:19:01 +0000 |
commit | 863d148a4ee862f663c23691f34807b7f2fb450c (patch) | |
tree | 28c4216dd5dc9ef256a9acf483efcc77dfced572 /process.c | |
parent | d3e8f0fe7f432781951a3ad72a9331d027443d91 (diff) | |
download | ruby-863d148a4ee862f663c23691f34807b7f2fb450c.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); \ } |