Page MenuHomeFreeBSD

D24528.diff
No OneTemporary

D24528.diff

Index: head/sys/kern/sys_pipe.c
===================================================================
--- head/sys/kern/sys_pipe.c
+++ head/sys/kern/sys_pipe.c
@@ -1430,7 +1430,8 @@
if ((events & POLLINIGNEOF) == 0) {
if (rpipe->pipe_state & PIPE_EOF) {
- revents |= (events & (POLLIN | POLLRDNORM));
+ if (fp->f_flag & FREAD)
+ revents |= (events & (POLLIN | POLLRDNORM));
if (wpipe->pipe_present != PIPE_ACTIVE ||
(wpipe->pipe_state & PIPE_EOF))
revents |= POLLHUP;

File Metadata

Mime Type
text/plain
Expires
Mon, May 18, 7:13 PM (3 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33264107
Default Alt Text
D24528.diff (497 B)

Event Timeline