Author: attilio
Date: Fri Feb 19 15:10:05 2010
New Revision: 204089
URL: http://svn.freebsd.org/changeset/base/204089

Log:
  Use the cached value within comparison.
  
  Submitted by: jhb

Modified:
  head/sys/kern/kern_kthread.c

Modified: head/sys/kern/kern_kthread.c
==============================================================================
--- head/sys/kern/kern_kthread.c        Fri Feb 19 15:03:55 2010        
(r204088)
+++ head/sys/kern/kern_kthread.c        Fri Feb 19 15:10:05 2010        
(r204089)
@@ -317,7 +317,7 @@ kthread_exit(void)
        /* A module may be waiting for us to exit. */
        wakeup(curthread);
        PROC_LOCK(p);
-       if (curthread->td_proc->p_numthreads == 1) {
+       if (p->p_numthreads == 1) {
                PROC_UNLOCK(p);
                kproc_exit(0);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to