summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-11-14 06:04:57 +0000
committerjulian <julian@FreeBSD.org>2007-11-14 06:04:57 +0000
commitb248158d8d9ce6732f5835ff5c90efc7eae9d38a (patch)
tree758bc1fb5d158757da01c8475bb9d58b148ae836 /sys/kern/kern_thread.c
parent760b9605ef7227e5fd9997437caddc0a708753b9 (diff)
downloadFreeBSD-src-b248158d8d9ce6732f5835ff5c90efc7eae9d38a.zip
FreeBSD-src-b248158d8d9ce6732f5835ff5c90efc7eae9d38a.tar.gz
Make sure there is a good default thread name for all threads.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r--sys/kern/kern_thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index cde764f..bf6dec2 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -232,6 +232,7 @@ proc_linkup(struct proc *p, struct thread *td)
/* XXX p_ksi may be null if ksiginfo zone is not ready */
p->p_ksi->ksi_flags = KSI_EXT | KSI_INS;
}
+ bcopy(p->p_comm, td->td_name, sizeof(td->td_name));
LIST_INIT(&p->p_mqnotifier);
p->p_numthreads = 0;
thread_link(td, p);
OpenPOWER on IntegriCloud