From: miod Date: Fri, 8 Dec 2023 19:14:36 +0000 (+0000) Subject: Make sure TIB_INIT correctly initializes tib_thread_flags; regression X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9b42e9bf977408fc702319315319dc3ee0edb957;p=openbsd 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@ --- 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 * @@ -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)