Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178123730
D24528.1796040707.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
497 B
Referenced Files
None
Subscribers
None
D24528.1796040707.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D24528: Some fixes for FIFOs/pipes when used with kqueue/poll
Attached
Detach File
Event Timeline