Back out NOTE_EXIT status reporting pending discussion.

This commit is contained in:
Brian Feldman 2000-05-21 16:27:41 +00:00
parent 24488c7498
commit a274d19ba2
3 changed files with 2 additions and 12 deletions

View File

@ -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 .

View File

@ -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);
}

View File

@ -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