about summary refs log tree commit diff
path: root/htl/pt-internal.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-11 12:49:10 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-11 20:41:24 +0000
commitd482ebfa67850976485fdf061cd52427eb8a3cb7 (patch)
treecbc820329ff51fd64b3cb033ab5e75ddb69e86a8 /htl/pt-internal.h
parent6d1d60341747a49cc98d0bc2ff20875401e0d9a7 (diff)
downloadglibc-d482ebfa67850976485fdf061cd52427eb8a3cb7.tar.gz
glibc-d482ebfa67850976485fdf061cd52427eb8a3cb7.tar.xz
glibc-d482ebfa67850976485fdf061cd52427eb8a3cb7.zip
htl: Keep thread signals blocked during its initialization
One may send signals immediately after creating a thread. We need to block them
until the thread is ready to run signal handlers.
Diffstat (limited to 'htl/pt-internal.h')
-rw-r--r--htl/pt-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index e0baa6bcda..9dffa0e32e 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -102,6 +102,9 @@ struct __pthread
   /* Indicates whether is a C11 thread created by thrd_creat.  */
   bool c11;
 
+  /* Initial sigset for the thread.  */
+  sigset_t init_sigset;
+
   /* Thread context.  */
   struct pthread_mcontext mcontext;