mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
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:
parent
d3e8f0fe7f
commit
863d148a4e
3 changed files with 32 additions and 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); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue