X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_self.c;h=cc2ddfb72ff4cdb8e4bd5046c7326204f8dacd0e;hb=3ac092bd7d700c6316c64660e2a722a2f85652a5;hp=d2493fcf3f4d5371f6a1a48fcc1bd014c47016a1;hpb=357876052b125dcd74882f61afec19d8f519074c;p=musl 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;