patch-kern_sig.c

Kernel patch removing lwkt_xxx_token() calls from sigexit() - ftigeot, 01/12/2014 01:29 AM

Download (555 Bytes)

 
1
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
2
index 1aa023bd..0822ac2 100644
3
--- a/sys/kern/kern_sig.c
4
+++ b/sys/kern/kern_sig.c
5
@@ -2162,7 +2162,6 @@ sigexit(struct lwp *lp, int sig)
6
 {
7
         struct proc *p = lp->lwp_proc;
8
 
9
-        lwkt_gettoken(&p->p_token);
10
         p->p_acflag |= AXSIG;
11
         if (sigprop(sig) & SA_CORE) {
12
                 lp->lwp_sig = sig;
13
@@ -2182,7 +2181,6 @@ sigexit(struct lwp *lp, int sig)
14
                             sig &~ WCOREFLAG,
15
                             sig & WCOREFLAG ? " (core dumped)" : "");
16
         }
17
-        lwkt_reltoken(&p->p_token);
18
         exit1(W_EXITCODE(0, sig));
19
         /* NOTREACHED */
20
 }