summaryrefslogtreecommitdiff
path: root/sys/kern/kern_thread.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2007-11-14 06:04:57 +0000
committerJulian Elischer <julian@FreeBSD.org>2007-11-14 06:04:57 +0000
commitca081fdbc5aa456250f138fa6fe1444553664721 (patch)
tree758bc1fb5d158757da01c8475bb9d58b148ae836 /sys/kern/kern_thread.c
parent502e39a873f50184ad7e891a909940f301809e88 (diff)
Notes
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 cde764f3d5d3..bf6dec27164a 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);