FD locking is not enabled anymore, so the table which contains the owner
of a file descriptor has NULL entries, so don't dereference the table entries to get the owners ever -- don't print the owners when processing a thread_dump request as a result of SIGINFO. Reviewed by: deischen
This commit is contained in:
parent
e80fb43467
commit
4aba47f7ce
@ -252,10 +252,6 @@ dump_thread(int fd, pthread_t pthread, int long_version)
|
||||
pthread->data.fd.fname,
|
||||
pthread->data.fd.branch);
|
||||
__sys_write(fd, s, strlen(s));
|
||||
snprintf(s, sizeof(s), "owner %pr/%pw\n",
|
||||
_thread_fd_table[pthread->data.fd.fd]->r_owner,
|
||||
_thread_fd_table[pthread->data.fd.fd]->w_owner);
|
||||
__sys_write(fd, s, strlen(s));
|
||||
break;
|
||||
case PS_SIGWAIT:
|
||||
snprintf(s, sizeof(s), "sigmask (hi)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user