Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-0]: src/sys/kern Pull up following revision(s) (requested by pg...



details:   https://anonhg.NetBSD.org/src/rev/0cc723a75516
branches:  netbsd-6-0
changeset: 775097:0cc723a75516
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Nov 15 20:44:10 2015 +0000

description:
Pull up following revision(s) (requested by pgoyette in ticket #1336):
        sys/kern/kern_exit.c: revision 1.248
Update value of p_stat before we release the proc_lock.  Thanks to
Robert Elz.
XXX Pull-ups for -7, -6{,-0,-1} and -5{,-0,-1,-2}

diffstat:

 sys/kern/kern_exit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 5f07643baec3 -r 0cc723a75516 sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c      Sun Nov 15 20:42:36 2015 +0000
+++ b/sys/kern/kern_exit.c      Sun Nov 15 20:44:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exit.c,v 1.236.2.2.2.1 2015/11/15 20:38:01 bouyer Exp $   */
+/*     $NetBSD: kern_exit.c,v 1.236.2.2.2.2 2015/11/15 20:44:10 bouyer Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.236.2.2.2.1 2015/11/15 20:38:01 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.236.2.2.2.2 2015/11/15 20:44:10 bouyer Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_perfctrs.h"
@@ -248,8 +248,8 @@
                }
                p->p_waited = 0;
                p->p_pptr->p_nstopchild++;
+               p->p_stat = SSTOP;
                mutex_exit(proc_lock);
-               p->p_stat = SSTOP;
                lwp_lock(l);
                p->p_nrlwps--;
                l->l_stat = LSSTOP;



Home | Main Index | Thread Index | Old Index