summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-02-23 19:40:39 -0300
committerLuiz Souza <luiz@netgate.com>2018-02-23 19:40:39 -0300
commit9e3f9eb19aae437c111a95ba286571c3d9cfcf7e (patch)
tree8fb26b9ab223341823fa6d64b3743de9220ed044 /sys/kern/kern_thr.c
parent810d45dfd8239a4b42661bd4bb4e470e3a41799d (diff)
downloadFreeBSD-src-9e3f9eb19aae437c111a95ba286571c3d9cfcf7e.zip
FreeBSD-src-9e3f9eb19aae437c111a95ba286571c3d9cfcf7e.tar.gz
Revert "Revert "MFC r319873:""
This reverts commit 4c9907d21517c211b27a3cf5b7a2a976623820cc.
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index c39986d..6bebac9 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -235,6 +235,7 @@ thread_create(struct thread *td, struct rtprio *rtp,
newtd->td_sleeptimo = 0;
bcopy(&td->td_startcopy, &newtd->td_startcopy,
__rangeof(struct thread, td_startcopy, td_endcopy));
+ newtd->td_sa = td->td_sa;
newtd->td_proc = td->td_proc;
newtd->td_rb_list = newtd->td_rbp_list = newtd->td_rb_inact = 0;
thread_cow_get(newtd, td);
OpenPOWER on IntegriCloud