diff options
Diffstat (limited to 'src/thread/pthread_self.c')
-rw-r--r-- | src/thread/pthread_self.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |