0001-re-initialize-timer_thread_-lock-cond-after-fork.patch
| b/thread_pthread.c | ||
|---|---|---|
| 789 | 789 |
pthread_attr_setstacksize(&attr, |
| 790 | 790 |
PTHREAD_STACK_MIN + (THREAD_DEBUG ? BUFSIZ : 0)); |
| 791 | 791 |
#endif |
| 792 | ||
| 793 |
/* we can be called after fork. And this variables need to be re-initialized */ |
|
| 794 |
native_mutex_initialize(&timer_thread_lock); |
|
| 795 |
native_cond_initialize(&timer_thread_cond); |
|
| 796 | ||
| 792 | 797 |
native_mutex_lock(&timer_thread_lock); |
| 793 | 798 |
err = pthread_create(&timer_thread_id, &attr, thread_timer, 0); |
| 794 | 799 |
if (err != 0) {
|
| 795 |
- |
|