Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115933043
D30016.id88278.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
439 B
Referenced Files
None
Subscribers
None
D30016.id88278.diff
View Options
Index: sys/kern/sys_pipe.c
===================================================================
--- sys/kern/sys_pipe.c
+++ sys/kern/sys_pipe.c
@@ -1494,7 +1494,8 @@
rpipe->pipe_state |= PIPE_SEL;
}
- if ((fp->f_flag & FWRITE) != 0) {
+ if ((fp->f_flag & FWRITE) != 0 &&
+ wpipe->pipe_present == PIPE_ACTIVE) {
selrecord(td, &wpipe->pipe_sel);
if (SEL_WAITING(&wpipe->pipe_sel))
wpipe->pipe_state |= PIPE_SEL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 2:17 PM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17883494
Default Alt Text
D30016.id88278.diff (439 B)
Attached To
Mode
D30016: pipe: Avoid calling selrecord() on a closing pipe
Attached
Detach File
Event Timeline
Log In to Comment