diff options
author | Luiz Souza <luiz@netgate.com> | 2018-02-23 19:40:39 -0300 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2018-02-23 19:40:39 -0300 |
commit | 9e3f9eb19aae437c111a95ba286571c3d9cfcf7e (patch) | |
tree | 8fb26b9ab223341823fa6d64b3743de9220ed044 /sys/kern/kern_fork.c | |
parent | 810d45dfd8239a4b42661bd4bb4e470e3a41799d (diff) | |
download | FreeBSD-src-9e3f9eb19aae437c111a95ba286571c3d9cfcf7e.zip FreeBSD-src-9e3f9eb19aae437c111a95ba286571c3d9cfcf7e.tar.gz |
Revert "Revert "MFC r319873:""
This reverts commit 4c9907d21517c211b27a3cf5b7a2a976623820cc.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index c7680aa..b63bc65 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -478,6 +478,7 @@ do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread * bcopy(&td->td_startcopy, &td2->td_startcopy, __rangeof(struct thread, td_startcopy, td_endcopy)); + td2->td_sa = td->td_sa; bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name)); td2->td_sigstk = td->td_sigstk; @@ -1103,7 +1104,7 @@ fork_return(struct thread *td, struct trapframe *frame) */ PROC_LOCK(p); td->td_dbgflags |= TDB_SCX; - _STOPEVENT(p, S_SCX, td->td_dbg_sc_code); + _STOPEVENT(p, S_SCX, td->td_sa.code); if ((p->p_ptevents & PTRACE_SCX) != 0 || (td->td_dbgflags & TDB_BORN) != 0) ptracestop(td, SIGTRAP, NULL); |