From 303014d009404b005be7a5870571244816930918 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 15 Nov 2007 06:35:26 +0000 Subject: This time REALLY copy the name from the proc to the thread as a default. --- sys/kern/kern_thr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern/kern_thr.c') diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 6bf0ded..25bf8d1 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -231,6 +231,7 @@ create_thread(struct thread *td, mcontext_t *ctx, newtd->td_sigmask = td->td_sigmask; PROC_SLOCK(p); thread_link(newtd, p); + bcopy(p->p_comm, newtd->td_name, sizeof(newtd->td_name)); thread_lock(td); /* let the scheduler know about these things. */ sched_fork_thread(td, newtd); -- cgit v1.1