summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_elf.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-11-14 06:51:33 +0000
committerjulian <julian@FreeBSD.org>2007-11-14 06:51:33 +0000
commit7ee6259be7701ab7248b6032108d5b0ca1611e02 (patch)
treedd192a15818e2aa4717bfbda6077f52bdab43e0f /sys/kern/imgact_elf.c
parentb2732e0c22b45ce7f1225a9c12834ec8c6bf9dda (diff)
downloadFreeBSD-src-7ee6259be7701ab7248b6032108d5b0ca1611e02.zip
FreeBSD-src-7ee6259be7701ab7248b6032108d5b0ca1611e02.tar.gz
A bunch more files that should probably print out a thread name
instead of a process name.
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r--sys/kern/imgact_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 619be4c..947a516 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1155,12 +1155,12 @@ __elfN(puthdr)(struct thread *td, void *dst, size_t *off, int numsegs)
if (dst != NULL) {
psinfo->pr_version = PRPSINFO_VERSION;
psinfo->pr_psinfosz = sizeof(elf_prpsinfo_t);
- strlcpy(psinfo->pr_fname, p->p_comm, sizeof(psinfo->pr_fname));
+ strlcpy(psinfo->pr_fname, td->td_name, sizeof(psinfo->pr_fname));
/*
* XXX - We don't fill in the command line arguments properly
* yet.
*/
- strlcpy(psinfo->pr_psargs, p->p_comm,
+ strlcpy(psinfo->pr_psargs, td->td_name,
sizeof(psinfo->pr_psargs));
}
__elfN(putnote)(dst, off, "FreeBSD", NT_PRPSINFO, psinfo,
OpenPOWER on IntegriCloud