Page MenuHomeFreeBSD

D24528.1796040707.diff
No OneTemporary

Authored By
Unknown
Size
497 B
Referenced Files
None
Subscribers
None

D24528.1796040707.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, Nov 30, 12:11 PM (7 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42099883
Default Alt Text
D24528.1796040707.diff (497 B)

Event Timeline