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:
Juli Mallett 2002-10-17 20:26:26 +00:00
parent e80fb43467
commit 4aba47f7ce

View File

@ -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)");