aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-05-21 16:27:41 +0000
committerBrian Feldman <green@FreeBSD.org>2000-05-21 16:27:41 +0000
commita274d19ba24d7a06513fef978a62597cd4240bc3 (patch)
treed0aa4c4167d131fc8b00a4288d771d9576812501
parent24488c7498c045c37f5cf5ab118795324baa19b8 (diff)
Notes
-rw-r--r--lib/libc/sys/kqueue.24
-rw-r--r--sys/kern/kern_event.c5
-rw-r--r--sys/kern/kern_exit.c5
3 files changed, 2 insertions, 12 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 7501ff2b17a6..9d3f6bf04aff 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -290,10 +290,6 @@ The events to monitor are:
.Bl -tag -width XXNOTE_TRACKERR
.It NOTE_EXIT
The process has exited.
-The
-.Xr wait 2 -style
-exit status is returned in
-.Va data .
.It NOTE_FORK
The process has called
.Fn fork .
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 46c8f2641e76..c22b24878cc6 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -264,11 +264,6 @@ filt_proc(struct knote *kn, long hint)
if (event == NOTE_EXIT) {
kn->kn_status |= KN_DETACHED;
kn->kn_flags |= (EV_EOF | EV_ONESHOT);
- /*
- * Return the 16 bits of the wait(2) value.
- */
- if (kn->kn_sfflags & NOTE_EXIT)
- kn->kn_data = (intptr_t)hint & 0xffff;
return (1);
}
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 0b160608726f..9115f9775a36 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -307,10 +307,9 @@ exit1(p, rv)
switchticks = ticks;
/*
- * Notify interested parties of our demise. Pass the lower (only)
- * 16 bits of our exit code along with it.
+ * notify interested parties of our demise.
*/
- KNOTE(&p->p_klist, NOTE_EXIT | (rv & 0xffff));
+ KNOTE(&p->p_klist, NOTE_EXIT);
/*
* Notify parent that we're gone. If parent has the PS_NOCLDWAIT