summaryrefslogtreecommitdiff
path: root/src/thread/pthread_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_self.c')
-rw-r--r--src/thread/pthread_self.c1
1 files changed, 1 insertions, 0 deletions
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)