eliminate use of cached pid from thread structure
[musl] / src / env / __init_tls.c
index efa0728..6cca968 100644 (file)
@@ -15,7 +15,7 @@ int __init_tp(void *p)
        if (r < 0) return -1;
        if (!r) libc.can_do_threads = 1;
        libc.has_thread_pointer = 1;
-       td->tid = td->pid = __syscall(SYS_set_tid_address, &td->tid);
+       td->tid = __syscall(SYS_set_tid_address, &td->tid);
        td->locale = &libc.global_locale;
        return 0;
 }