X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_self.c;h=cc2ddfb72ff4cdb8e4bd5046c7326204f8dacd0e;hp=d2493fcf3f4d5371f6a1a48fcc1bd014c47016a1;hb=28af39fe427ffec8b836f4f30450ffc30b03e5c4;hpb=fb80e047cc7d0b900445ca6ce38f10199dafd98b diff --git a/src/thread/pthread_self.c b/src/thread/pthread_self.c index d2493fcf..cc2ddfb7 100644 --- a/src/thread/pthread_self.c +++ b/src/thread/pthread_self.c @@ -13,7 +13,7 @@ static int init_main_thread() main_thread.tsd = (void **)__pthread_tsd_main; main_thread.errno_ptr = __errno_location(); main_thread.self = &main_thread; - main_thread.tid = main_thread.pid = + main_thread.tid = main_thread.pid = __syscall(SYS_set_tid_address, &main_thread.tid); libc.main_thread = &main_thread; return 0;