diff options
author | julian <julian@FreeBSD.org> | 2007-11-15 06:35:26 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-11-15 06:35:26 +0000 |
commit | 303014d009404b005be7a5870571244816930918 (patch) | |
tree | 56317105e823672d845e6a3d675fd5e519bcc6ab /sys/kern/kern_thr.c | |
parent | 438aba4018d449571345608b046ee4ad77b7e43a (diff) | |
download | FreeBSD-src-303014d009404b005be7a5870571244816930918.zip FreeBSD-src-303014d009404b005be7a5870571244816930918.tar.gz |
This time REALLY copy the name from the proc to the thread as a default.
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |