summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-01-05 00:29:00 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-01-05 00:29:00 +0000
commitc53cdbeb95ee95429b18b0a5cd9360cc2d1dafda (patch)
treed6d22c75336ac8fd3a00080ddfb2fe5a4c28970e /sys
parentc990f469a73b1f62af4a9204c798581fe9e947fb (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/svr4/svr4_machdep.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/svr4/svr4_machdep.c b/sys/i386/svr4/svr4_machdep.c
index a800b43a4fd3..91ad9d346673 100644
--- a/sys/i386/svr4/svr4_machdep.c
+++ b/sys/i386/svr4/svr4_machdep.c
@@ -206,7 +206,7 @@ svr4_setcontext(td, uc)
#if defined(DONE_MORE_SIGALTSTACK_WORK)
psp = p->p_sigacts;
#endif
- sf = &p->p_sigstk;
+ sf = &td->td_sigstk;
/*
* XXX:
@@ -437,11 +437,11 @@ svr4_sendsig(catcher, sig, mask, code)
/*
* Allocate space for the signal handler context.
*/
- if ((p->p_flag & P_ALTSTACK) && !oonstack &&
+ if ((td->td_pflags & TDP_ALTSTACK) && !oonstack &&
SIGISMEMBER(psp->ps_sigonstack, sig)) {
- fp = (struct svr4_sigframe *)(p->p_sigstk.ss_sp +
- p->p_sigstk.ss_size - sizeof(struct svr4_sigframe));
- p->p_sigstk.ss_flags |= SS_ONSTACK;
+ fp = (struct svr4_sigframe *)(td->td_sigstk.ss_sp +
+ td->td_sigstk.ss_size - sizeof(struct svr4_sigframe));
+ td->td_sigstk.ss_flags |= SS_ONSTACK;
} else {
fp = (struct svr4_sigframe *)tf->tf_esp - 1;
}