mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Back out NOTE_EXIT status reporting pending discussion.
This commit is contained in:
parent
24488c7498
commit
a274d19ba2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60759
@ -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 .
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user