From 9ed316e3a7552fbef07a6310acffe49b4e96bd20 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 18 Sep 2001 21:20:58 +0000 Subject: [PATCH] If we have a p variable pointing to td->td_proc already, use it instead of needlessly repeating the indirection in several places. Half of the places used td->td_proc, and half used p. They are now consistent with each other and all use p. --- sys/i386/svr4/svr4_machdep.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/i386/svr4/svr4_machdep.c b/sys/i386/svr4/svr4_machdep.c index f1522f6a508b..935577294beb 100644 --- a/sys/i386/svr4/svr4_machdep.c +++ b/sys/i386/svr4/svr4_machdep.c @@ -105,7 +105,7 @@ svr4_getcontext(td, uc, mask, oonstack) struct sigaltstack *sf; #endif - PROC_LOCK(td->td_proc); + PROC_LOCK(p); #if defined(DONE_MORE_SIGALTSTACK_WORK) psp = p->p_sigacts; sf = &p->p_sigstk; @@ -163,7 +163,7 @@ svr4_getcontext(td, uc, mask, oonstack) s->ss_size = 16384; s->ss_flags = 0; #endif - PROC_UNLOCK(td->td_proc); + PROC_UNLOCK(p); /* * Set the signal mask @@ -201,11 +201,11 @@ svr4_setcontext(td, uc) struct sigaltstack *sf; sigset_t mask; - PROC_LOCK(td->td_proc); + PROC_LOCK(p); #if defined(DONE_MORE_SIGALTSTACK_WORK) - psp = td->td_proc->p_sigacts; + psp = p->p_sigacts; #endif - sf = &td->td_proc->p_sigstk; + sf = &p->p_sigstk; /* * XXX: @@ -295,7 +295,7 @@ svr4_setcontext(td, uc) SIG_CANTMASK(mask); p->p_sigmask = mask; } - PROC_UNLOCK(td->td_proc); + PROC_UNLOCK(p); return 0; /*EJUSTRETURN;*/ } @@ -438,7 +438,7 @@ svr4_sendsig(catcher, sig, mask, code) } else { fp = (struct svr4_sigframe *)tf->tf_esp - 1; } - PROC_UNLOCK(td->td_proc); + PROC_UNLOCK(p); /* * Build the argument list for the signal handler. @@ -472,7 +472,7 @@ svr4_sendsig(catcher, sig, mask, code) * Process has trashed its stack; give it an illegal * instruction to halt it in its tracks. */ - PROC_LOCK(td->td_proc); + PROC_LOCK(p); sigexit(td, SIGILL); /* NOTREACHED */ }