diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-17 22:18:07 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-17 22:18:07 +0000 |
commit | f6f1e291b9a89bcfb24b7eb59267ae0514202257 (patch) | |
tree | 31602d8534405dff2981fd10abe0f46781571831 /sys/i386/linux/linux_sysvec.c | |
parent | 3d97448a8aa57ea84c30f46dcf6ee3bddfc5e683 (diff) | |
download | FreeBSD-src-f6f1e291b9a89bcfb24b7eb59267ae0514202257.zip FreeBSD-src-f6f1e291b9a89bcfb24b7eb59267ae0514202257.tar.gz |
Don't drop the proc lock just to reacquire it after a few simple assignment
statements. Just hold the lock the entire time.
Diffstat (limited to 'sys/i386/linux/linux_sysvec.c')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index ec98a93..940c238 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -293,7 +293,6 @@ linux_rt_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) p->p_sigstk.ss_size - sizeof(struct l_rt_sigframe)); } else fp = (struct l_rt_sigframe *)regs->tf_esp - 1; - PROC_UNLOCK(p); /* * Build the argument list for the signal handler. @@ -320,7 +319,6 @@ linux_rt_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) frame.sf_sc.uc_flags = 0; /* XXX ??? */ frame.sf_sc.uc_link = NULL; /* XXX ??? */ - PROC_LOCK(p); frame.sf_sc.uc_stack.ss_sp = p->p_sigstk.ss_sp; frame.sf_sc.uc_stack.ss_size = p->p_sigstk.ss_size; frame.sf_sc.uc_stack.ss_flags = (p->p_flag & P_ALTSTACK) |