Source-Changes-HG archive

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

[src/netbsd-7]: src Pull up following revision(s) (requested by christos in t...



details:   https://anonhg.NetBSD.org/src/rev/807b90a9a4c7
branches:  netbsd-7
changeset: 799193:807b90a9a4c7
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Apr 14 04:39:58 2015 +0000

description:
Pull up following revision(s) (requested by christos in ticket #677):
        lib/libc/sys/kqueue.2: revision 1.34
        sys/kern/kern_event.c: revision 1.83
put the exit code of the process in data, like FreeBSD does.
--
say that we put the exit code in data.

diffstat:

 lib/libc/sys/kqueue.2 |  6 ++++--
 sys/kern/kern_event.c |  8 ++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (56 lines):

diff -r 2406ff2629be -r 807b90a9a4c7 lib/libc/sys/kqueue.2
--- a/lib/libc/sys/kqueue.2     Tue Apr 14 04:33:46 2015 +0000
+++ b/lib/libc/sys/kqueue.2     Tue Apr 14 04:39:58 2015 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: kqueue.2,v 1.33 2012/11/24 15:16:52 christos Exp $
+.\"    $NetBSD: kqueue.2,v 1.33.8.1 2015/04/14 04:39:58 snj Exp $
 .\"
 .\" Copyright (c) 2000 Jonathan Lemon
 .\" All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.22 2001/06/27 19:55:57 dd Exp $
 .\"
-.Dd November 24, 2012
+.Dd March 2, 2015
 .Dt KQUEUE 2
 .Os
 .Sh NAME
@@ -413,6 +413,8 @@
 .Bl -tag -width XXNOTE_TRACKERR
 .It NOTE_EXIT
 The process has exited.
+The exit code of the process is stored in
+.Va data .
 .It NOTE_FORK
 The process has called
 .Fn fork .
diff -r 2406ff2629be -r 807b90a9a4c7 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Tue Apr 14 04:33:46 2015 +0000
+++ b/sys/kern/kern_event.c     Tue Apr 14 04:39:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.80 2014/06/24 14:42:43 maxv Exp $     */
+/*     $NetBSD: kern_event.c,v 1.80.2.1 2015/04/14 04:39:58 snj Exp $  */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.80 2014/06/24 14:42:43 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.80.2.1 2015/04/14 04:39:58 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -548,6 +548,10 @@
                fflag |= event;
 
        if (event == NOTE_EXIT) {
+               struct proc *p = kn->kn_obj;
+
+               if (p != NULL)
+                       kn->kn_data = p->p_xstat;
                /*
                 * Process is gone, so flag the event as finished.
                 *



Home | Main Index | Thread Index | Old Index