summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.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/kern_fork.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/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index ab7ca8b..4c5a730 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -764,7 +764,7 @@ fork_exit(callout, arg, frame)
KASSERT(p->p_state == PRS_NORMAL, ("executing process is still new"));
CTR4(KTR_PROC, "fork_exit: new thread %p (kse %p, pid %d, %s)",
- td, td->td_sched, p->p_pid, p->p_comm);
+ td, td->td_sched, p->p_pid, td->td_name);
sched_fork_exit(td);
/*
@@ -792,7 +792,7 @@ fork_exit(callout, arg, frame)
*/
if (p->p_flag & P_KTHREAD) {
printf("Kernel thread \"%s\" (pid %d) exited prematurely.\n",
- p->p_comm, p->p_pid);
+ td->td_name, p->p_pid);
kproc_exit(0);
}
mtx_assert(&Giant, MA_NOTOWNED);
OpenPOWER on IntegriCloud