summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1999-01-15 00:21:03 +0000
committerjb <jb@FreeBSD.org>1999-01-15 00:21:03 +0000
commitbeae8419dd334a658e0965593b04124d7a550afa (patch)
tree95b2d168aa08d369c11ed64308f5f09168308651
parent3f0c2c8990f02cfb87d1094fcac2eda48facdb3f (diff)
downloadFreeBSD-src-beae8419dd334a658e0965593b04124d7a550afa.zip
FreeBSD-src-beae8419dd334a658e0965593b04124d7a550afa.tar.gz
Increase the size of private thread flags so that the test for a
thread trying to call pthread_exit() from a cleanup handler actually works. Submitted by: David Leonard <david.leonard@csee.uq.edu.au> OpenBSD
-rw-r--r--lib/libc_r/uthread/pthread_private.h2
-rw-r--r--lib/libkse/thread/thr_private.h2
-rw-r--r--lib/libpthread/thread/thr_private.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/pthread_private.h b/lib/libc_r/uthread/pthread_private.h
index e73f4f1..2d7e723 100644
--- a/lib/libc_r/uthread/pthread_private.h
+++ b/lib/libc_r/uthread/pthread_private.h
@@ -447,7 +447,7 @@ struct pthread {
int signo;
/* Miscellaneous data. */
- char flags;
+ int flags;
#define PTHREAD_EXITING 0x0100
char pthread_priority;
void *ret;
diff --git a/lib/libkse/thread/thr_private.h b/lib/libkse/thread/thr_private.h
index e73f4f1..2d7e723 100644
--- a/lib/libkse/thread/thr_private.h
+++ b/lib/libkse/thread/thr_private.h
@@ -447,7 +447,7 @@ struct pthread {
int signo;
/* Miscellaneous data. */
- char flags;
+ int flags;
#define PTHREAD_EXITING 0x0100
char pthread_priority;
void *ret;
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h
index e73f4f1..2d7e723 100644
--- a/lib/libpthread/thread/thr_private.h
+++ b/lib/libpthread/thread/thr_private.h
@@ -447,7 +447,7 @@ struct pthread {
int signo;
/* Miscellaneous data. */
- char flags;
+ int flags;
#define PTHREAD_EXITING 0x0100
char pthread_priority;
void *ret;
OpenPOWER on IntegriCloud