summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-09-22 00:40:23 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-09-22 00:40:23 +0000
commit96155432c1134cb7a91aa4aa31f8ad652684fce0 (patch)
tree84b347d8e3874d83f3203ec608db4e3792b589b6 /lib
parentcff39a66f754e5cf9e9810112529281fb5606cc9 (diff)
downloadFreeBSD-src-96155432c1134cb7a91aa4aa31f8ad652684fce0.zip
FreeBSD-src-96155432c1134cb7a91aa4aa31f8ad652684fce0.tar.gz
Print waitset correctly.
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/thread/thr_info.c2
-rw-r--r--lib/libpthread/thread/thr_info.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_info.c b/lib/libkse/thread/thr_info.c
index 27ef3d1..6081381 100644
--- a/lib/libkse/thread/thr_info.c
+++ b/lib/libkse/thread/thr_info.c
@@ -185,7 +185,7 @@ dump_thread(int fd, pthread_t pthread, int long_version)
__sys_write(fd, s, strlen(s));
for (i = _SIG_WORDS - 1; i >= 0; i--) {
snprintf(s, sizeof(s), "%08x ",
- ~pthread->sigmask.__bits[i]);
+ pthread->data.sigwait->waitset->__bits[i]);
__sys_write(fd, s, strlen(s));
}
snprintf(s, sizeof(s), "(lo)\n");
diff --git a/lib/libpthread/thread/thr_info.c b/lib/libpthread/thread/thr_info.c
index 27ef3d1..6081381 100644
--- a/lib/libpthread/thread/thr_info.c
+++ b/lib/libpthread/thread/thr_info.c
@@ -185,7 +185,7 @@ dump_thread(int fd, pthread_t pthread, int long_version)
__sys_write(fd, s, strlen(s));
for (i = _SIG_WORDS - 1; i >= 0; i--) {
snprintf(s, sizeof(s), "%08x ",
- ~pthread->sigmask.__bits[i]);
+ pthread->data.sigwait->waitset->__bits[i]);
__sys_write(fd, s, strlen(s));
}
snprintf(s, sizeof(s), "(lo)\n");
OpenPOWER on IntegriCloud