From d8410b8edf84ebb8bbf94c0f8566ca9dc0cbbe31 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 15 Nov 2007 14:16:20 +0000 Subject: [PATCH] Fix build. --- sys/kern/kern_kse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index a955fba4dcd..787aa494c10 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1045,7 +1045,7 @@ thread_schedule_upcall(struct thread *td, struct kse_upcall *ku) __rangeof(struct thread, td_startcopy, td_endcopy)); sched_fork_thread(td, td2); thread_link(td2, ku->ku_proc); - bcopy(ku->ku_comm, td2->td_name, sizeof(td2->td_name)); + bcopy(ku->ku_proc->p_comm, td2->td_name, sizeof(td2->td_name)); /* inherit parts of blocked thread's context as a good template */ cpu_set_upcall(td2, td); /* Let the new thread become owner of the upcall */