diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index d873f8766463..fd16065a6c62 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1221,6 +1221,7 @@ pipeclose(cpipe) ppipe->pipe_state |= PIPE_EOF; wakeup(ppipe); + KNOTE(&ppipe->pipe_sel.si_note, 0); ppipe->pipe_peer = NULL; } /*