mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Allow a thread dump to report the thread's sigmask when in the
PS_SIGWAIT state.
This commit is contained in:
parent
334fa8f215
commit
af139b98d4
3 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue