diff options
author | kib <kib@FreeBSD.org> | 2012-05-26 20:03:47 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-05-26 20:03:47 +0000 |
commit | dcb105721a02f8e28a04a14f50b493dbce705c1b (patch) | |
tree | 8e9f41721fe869bf79b03cbe6b6c43e267e1514c /sys/kern/kern_kthread.c | |
parent | 1339de0936399f41179e8b5d5c1bf8713eb77e0d (diff) | |
download | FreeBSD-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.c | 2 |
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. */ |