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:
parent
fef69244b8
commit
783c41d432
@ -1221,6 +1221,7 @@ pipeclose(cpipe)
|
||||
|
||||
ppipe->pipe_state |= PIPE_EOF;
|
||||
wakeup(ppipe);
|
||||
KNOTE(&ppipe->pipe_sel.si_note, 0);
|
||||
ppipe->pipe_peer = NULL;
|
||||
}
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user