freebsd-skq/sys
kib 6c6bda868d Fix poll(2) and select(2) for named pipes to return "ready for read"
when all writers, observed by reader, exited. Use writer generation
counter for fifo, and store the snapshot of the fifo generation in the
f_seqcount field of struct file, that is otherwise unused for fifos.
Set FreeBSD-undocumented POLLINIGNEOF flag only when file f_seqcount is
equal to fifo' fi_wgen, and revert r89376.

Fix POLLINIGNEOF for sockets and pipes, and return POLLHUP for them.
Note that the patch does not fix not returning POLLHUP for fifos.

PR:	kern/94772
Submitted by:	bde (original version)
Reviewed by:	rwatson, jilles
Approved by:	re (kensmith)
MFC after:	6 weeks (might be)
2009-07-07 09:43:44 +00:00
..
amd64 When pmap_change_attr() changes the PAT setting on a kernel mapping, it has 2009-07-06 18:43:42 +00:00
arm Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
boot
bsm
cam
cddl
compat Replace AUDIT_ARG() with variable argument macros with a set more more 2009-06-27 13:58:44 +00:00
conf Bump for BETA1. 2009-07-07 00:02:26 +00:00
contrib Update to 3.6.2.2 firmware (latest w/o host-based power save support): 2009-06-29 18:42:54 +00:00
crypto
ddb
dev Fix AR5416 and later parts when building with AH_DEBUG or similar defined: 2009-07-06 20:51:54 +00:00
fs Fix poll(2) and select(2) for named pipes to return "ready for read" 2009-07-07 09:43:44 +00:00
gdb
geom Fix a panic which (reportedly) can happen when unmounting a filesystem 2009-07-01 20:16:29 +00:00
gnu
i386 After the per-CPU IDT changes, the IDT vector of an interrupt could change 2009-07-06 18:23:00 +00:00
ia64 Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
isa
kern Fix poll(2) and select(2) for named pipes to return "ready for read" 2009-07-07 09:43:44 +00:00
kgssapi
libkern
mips Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
modules catchup with action+ageq additions 2009-07-05 21:19:10 +00:00
net In case we cannot queue a packet reaching the queue limit, retain the 2009-06-30 05:21:00 +00:00
net80211 Add ieee80211_ageq; a facility for staging packets that require 2009-07-05 18:17:37 +00:00
netatalk
netgraph Fix infinite loop in ng_iface, that happens when packet passes out via 2009-07-01 08:08:56 +00:00
netinet
netinet6 Fix "options VIMAGE_GLOBALS" build following introduction of 2009-06-29 15:23:50 +00:00
netipsec
netipx
netnatm
netncp
netsmb
nfs Remove the old kernel RPC implementation and the NFS_LEGACYRPC option. 2009-06-30 19:03:27 +00:00
nfsclient In vn_vget_ino() and their inline equivalents, mnt_ref() the mount point 2009-07-02 18:02:55 +00:00
nfsserver Remove the old kernel RPC implementation and the NFS_LEGACYRPC option. 2009-06-30 19:03:27 +00:00
nlm
opencrypto
pc98 Enable POSIX semaphores on all non-embedded architectures by default. 2009-07-02 18:24:37 +00:00
pci
powerpc Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
rpc When unmounting an NFS mount using sec=krb5[ip], the umount system 2009-07-01 16:42:03 +00:00
security Create audit records for AUE_POSIX_OPENPT, currently w/o arguments. 2009-07-02 16:33:38 +00:00
sparc64 Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
sun4v Cleanup ALIGNED_POINTER: 2009-07-05 17:45:48 +00:00
sys Fix poll(2) and select(2) for named pipes to return "ready for read" 2009-07-07 09:43:44 +00:00
tools - Increase dynamic range of filter coefficients from 28bit to 30bit. 2009-07-05 18:15:06 +00:00
ufs Fix fpathconf(3) on fifos, in effect making ls(1) properly 2009-07-02 20:05:21 +00:00
vm When forking a vm space that has wired map entries, do not forget to 2009-07-03 22:17:37 +00:00
xdr
xen
Makefile