X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_self.c;h=e26476cedffd37ae171e9945f856607a239cda71;hb=ebf82447be4b30bedc19ad868c3a0662b1ba596d;hp=83efa9e874da9119c82d6c8e86c9848bf23f8e04;hpb=6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8;p=musl diff --git a/src/thread/pthread_self.c b/src/thread/pthread_self.c index 83efa9e8..e26476ce 100644 --- a/src/thread/pthread_self.c +++ b/src/thread/pthread_self.c @@ -14,6 +14,7 @@ static int *errno_location() static int init_main_thread() { + main_thread.canceldisable = libc.canceldisable; main_thread.tsd = (void **)__pthread_tsd_main; main_thread.self = &main_thread; if (__set_thread_area(&main_thread) < 0)