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