summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-04-17 09:39:37 +0000
committerjb <jb@FreeBSD.org>1998-04-17 09:39:37 +0000
commit10e0c9e2e72f2d2f75732eeba6f03e148a22ab6c (patch)
tree5e6eb2c2c028edf9155dc8294cfed1b221652c9e /lib/libpthread
parent2b906f181aadab0c246afdddb833c654bcb5761e (diff)
downloadFreeBSD-src-10e0c9e2e72f2d2f75732eeba6f03e148a22ab6c.zip
FreeBSD-src-10e0c9e2e72f2d2f75732eeba6f03e148a22ab6c.tar.gz
Allow a thread dump to report the thread's sigmask when in the
PS_SIGWAIT state.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_info.c b/lib/libpthread/thread/thr_info.c
index fe6565b..2909989 100644
--- a/lib/libpthread/thread/thr_info.c
+++ b/lib/libpthread/thread/thr_info.c
@@ -117,6 +117,10 @@ _thread_dump_info(void)
sprintf(s, "owner %pr/%pw\n", _thread_fd_table[pthread->data.fd.fd]->r_owner, _thread_fd_table[pthread->data.fd.fd]->w_owner);
_thread_sys_write(fd, s, strlen(s));
break;
+ case PS_SIGWAIT:
+ sprintf(s, "sigmask 0x%08lx\n", pthread->sigmask);
+ _thread_sys_write(fd, s, strlen(s));
+ break;
/*
* Trap other states that are not explicitly
OpenPOWER on IntegriCloud