Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/e9daa0d82b3f
branches:  netbsd-6
changeset: 777016:e9daa0d82b3f
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 14c7a087b476 -r e9daa0d82b3f sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c      Sun Nov 15 20:42:32 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.4 2015/11/15 20:37:04 bouyer Exp $       */
+/*     $NetBSD: kern_exit.c,v 1.236.2.5 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.4 2015/11/15 20:37:04 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.236.2.5 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