aboutsummaryrefslogtreecommitdiff
path: root/ObsoleteFiles.inc
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2011-12-14 22:26:39 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2011-12-14 22:26:39 +0000
commit6d1c58f8a2b52de0f6a63ce40bd9edca958270d7 (patch)
tree52674120d1f22b4d3cf93f3c2fceb4ab1105f459 /ObsoleteFiles.inc
parentfb680e16f44be1cbcf58edafe75b85b166f449aa (diff)
downloadsrc-6d1c58f8a2b52de0f6a63ce40bd9edca958270d7.tar.gz
src-6d1c58f8a2b52de0f6a63ce40bd9edca958270d7.zip
Fix select/poll/kqueue for write on reverse direction before first write.
The reverse direction of a pipe is lazily allocated on the first write in that direction (because pipes are usually used in one direction only). A special case is needed to ensure the pipe appears writable before the first write because there are 0 bytes of pending data in 0 bytes of buffer space at that point, leaving 0 bytes of data that can be written with the normal code. Note that the first write returns [ENOMEM] if kern.ipc.maxpipekva is exceeded and does not block or return [EAGAIN], so selecting true for write is correct even in that case. PR: kern/93685 Submitted by: gianni MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=228510
Diffstat (limited to 'ObsoleteFiles.inc')
0 files changed, 0 insertions, 0 deletions