diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-08 19:14:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-08 19:14:37 +0000 |
commit | 8bbcd2c27170236455b293c3885aca3520dbfeea (patch) | |
tree | b5937c6ce2ce06ff3d1160f2d93b8794bada59db /include/tib.h | |
parent | 1b3a477d9129f4e73a69ca5d8947cb0756b1fdb9 (diff) |
Make sure TIB_INIT correctly initializes tib_thread_flags; regression
introduced in 1.3, causing sporadic pthread_main_np() erroneous results
(and possibly more subtle problems).
With and ok kurt@
Diffstat (limited to 'include/tib.h')
-rw-r--r-- | include/tib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tib.h b/include/tib.h index 97dc08cdc56..313745f8cea 100644 --- a/include/tib.h +++ b/include/tib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tib.h,v 1.9 2022/12/27 07:44:56 jmc Exp $ */ +/* $OpenBSD: tib.h,v 1.10 2023/12/08 19:14:36 miod Exp $ */ /* * Copyright (c) 2011,2014 Philip Guenther <guenther@openbsd.org> * @@ -216,6 +216,7 @@ struct tib { (tib)->tib_canceled = 0; \ (tib)->tib_dtv = (dtv); \ (tib)->tib_errno = 0; \ + (tib)->tib_thread_flags = 0; \ _TIB_PREP(tib); \ } while (0) |