Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix wrong WIFCONTINUED() status.
details: https://anonhg.NetBSD.org/src/rev/d72d9c0ab267
branches: trunk
changeset: 348715:d72d9c0ab267
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 03 20:58:25 2016 +0000
description:
Fix wrong WIFCONTINUED() status.
diffstat:
sys/kern/kern_exit.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 3a798db34e9d -r d72d9c0ab267 sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c Thu Nov 03 20:24:18 2016 +0000
+++ b/sys/kern/kern_exit.c Thu Nov 03 20:58:25 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exit.c,v 1.260 2016/09/23 14:16:44 skrll Exp $ */
+/* $NetBSD: kern_exit.c,v 1.261 2016/11/03 20:58:25 christos 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.260 2016/09/23 14:16:44 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.261 2016/11/03 20:58:25 christos Exp $");
#include "opt_ktrace.h"
#include "opt_dtrace.h"
@@ -684,9 +684,9 @@
proc_free(child, wru);
}
} else {
- /* Child state must have been SSTOP. */
- *status = child->p_xsig == SIGCONT ? W_CONTCODE() :
- W_STOPCODE(child->p_xsig);
+ /* Don't mark SIGCONT if we are being stopped */
+ *status = (child->p_xsig == SIGCONT && child->p_stat != SSTOP) ?
+ W_CONTCODE() : W_STOPCODE(child->p_xsig);
mutex_exit(proc_lock);
}
return 0;
Home |
Main Index |
Thread Index |
Old Index