summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-05-26 20:03:47 +0000
committerkib <kib@FreeBSD.org>2012-05-26 20:03:47 +0000
commitdcb105721a02f8e28a04a14f50b493dbce705c1b (patch)
tree8e9f41721fe869bf79b03cbe6b6c43e267e1514c /sys/kern/kern_kthread.c
parent1339de0936399f41179e8b5d5c1bf8713eb77e0d (diff)
downloadFreeBSD-src-dcb105721a02f8e28a04a14f50b493dbce705c1b.zip
FreeBSD-src-dcb105721a02f8e28a04a14f50b493dbce705c1b.tar.gz
Stop treating td_sigmask specially for the purposes of new thread
creation. Move it into the copied region of the struct thread. Update some comments. Requested by: bde X-MFC after: never
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 9dcdeb0..d8bbebd 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -271,7 +271,6 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
bzero(&newtd->td_startzero,
__rangeof(struct thread, td_startzero, td_endzero));
-/* XXX check if we should zero. */
bcopy(&oldtd->td_startcopy, &newtd->td_startcopy,
__rangeof(struct thread, td_startcopy, td_endcopy));
@@ -295,7 +294,6 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
/* this code almost the same as create_thread() in kern_thr.c */
PROC_LOCK(p);
p->p_flag |= P_HADTHREADS;
- newtd->td_sigmask = oldtd->td_sigmask; /* XXX dubious */
thread_link(newtd, p);
thread_lock(oldtd);
/* let the scheduler know about these things. */
OpenPOWER on IntegriCloud