mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* thread.c (thread_cleanup_func): delete locking_mutex when thread
object become dummy because of fork. [ruby-core:26744] [ruby-core:26745] * bootstraptest/test_thread.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a761c3209
commit
31c0e3385f
3 changed files with 32 additions and 0 deletions
1
thread.c
1
thread.c
|
@ -380,6 +380,7 @@ thread_cleanup_func(void *th_ptr)
|
|||
rb_mutex_unlock_all(th->keeping_mutexes, th);
|
||||
th->keeping_mutexes = NULL;
|
||||
}
|
||||
th->locking_mutex = Qfalse;
|
||||
thread_cleanup_func_before_exec(th_ptr);
|
||||
native_thread_destroy(th);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue