Bug #4169 ยป 0001-reset-thread-lock-state-at-fork.patch
thread.c | ||
---|---|---|
rb_mutex_abandon_all(th->keeping_mutexes);
|
||
}
|
||
th->keeping_mutexes = NULL;
|
||
/* Perhaps native thread locking state in libc is unstable value.
|
||
* We need reset it before thread destroying. Otherwise we may see
|
||
* insane deadlock scenario.
|
||
*/
|
||
native_mutex_initialize(&th->interrupt_lock);
|
||
native_thread_init(th);
|
||
thread_cleanup_func(th);
|
||
}
|
||
return ST_CONTINUE;
|