Make kevents on pipes work as described in the manpage - when the last

reader/writer disconnects, ensure that anybody who is waiting for the
kevent on the other end of the pipe gets EV_EOF.

MFC after:	2 weeks
This commit is contained in:
Maxim Sobolev 2001-11-19 09:25:30 +00:00
parent fef69244b8
commit 783c41d432

View File

@ -1221,6 +1221,7 @@ pipeclose(cpipe)
ppipe->pipe_state |= PIPE_EOF;
wakeup(ppipe);
KNOTE(&ppipe->pipe_sel.si_note, 0);
ppipe->pipe_peer = NULL;
}
/*