projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eliminate use of cached pid from thread structure
[musl]
/
src
/
env
/
__init_tls.c
diff --git
a/src/env/__init_tls.c
b/src/env/__init_tls.c
index
efa0728
..
6cca968
100644
(file)
--- a/
src/env/__init_tls.c
+++ b/
src/env/__init_tls.c
@@
-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;
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;
}
td->locale = &libc.global_locale;
return 0;
}