Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Set the exit status code properly.
details: https://anonhg.NetBSD.org/src/rev/5a39e2b069ab
branches: trunk
changeset: 344582:5a39e2b069ab
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 05 13:01:46 2016 +0000
description:
Set the exit status code properly.
diffstat:
sys/kern/kern_exit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a969e5a68864 -r 5a39e2b069ab sys/kern/kern_exit.c
--- a/sys/kern/kern_exit.c Tue Apr 05 12:28:57 2016 +0000
+++ b/sys/kern/kern_exit.c Tue Apr 05 13:01:46 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exit.c,v 1.253 2016/04/04 23:07:06 christos Exp $ */
+/* $NetBSD: kern_exit.c,v 1.254 2016/04/05 13:01:46 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.253 2016/04/04 23:07:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exit.c,v 1.254 2016/04/05 13:01:46 christos Exp $");
#include "opt_ktrace.h"
#include "opt_dtrace.h"
@@ -1035,7 +1035,7 @@
if (child != NULL || error != 0 ||
((options & WNOHANG) != 0 && dead == NULL)) {
if (child != NULL) {
- *status_p = child->p_xsig;
+ *status_p = P_WAITSTATUS(child);
}
*child_p = child;
return error;
Home |
Main Index |
Thread Index |
Old Index