Project

General

Profile

Bug #4169 ยป 0001-reset-thread-lock-state-at-fork.patch

kosaki (Motohiro KOSAKI), 12/20/2010 12:57 AM

View differences:

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;
    (1-1/1)