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
This commit is contained in:
nobu 2013-07-10 05:19:01 +00:00
parent d3e8f0fe7f
commit 863d148a4e
3 changed files with 32 additions and 1 deletions

View file

@ -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); \
}