fix arm __tlsdesc_dynamic when built as thumb code without __ARM_ARCH>=5
[musl] / src / process / fork.c
index 11286ef..fb42478 100644 (file)
@@ -28,6 +28,7 @@ pid_t fork(void)
                self->robust_list.off = 0;
                self->robust_list.pending = 0;
                self->next = self->prev = self;
+               __thread_list_lock = 0;
                libc.threads_minus_1 = 0;
        }
        __restore_sigs(&set);