]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: do not report POLLOUT on listeners
authorEric Dumazet <edumazet@google.com>
Fri, 23 Oct 2015 17:59:16 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Oct 2015 13:37:45 +0000 (06:37 -0700)
commit1d0f760fcdf5433060a052b847ba9acbdb763b73
tree67dfe980f1ce3a826883360f51babeabdb73c820
parentc7d4aa0679a454b8a046fc6e2398144793812891
af_unix: do not report POLLOUT on listeners

poll(POLLOUT) on a listener should not report fd is ready for
a write().

This would break some applications using poll() and pfd.events = -1,
as they would not block in poll()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Alan Burlison <Alan.Burlison@oracle.com>
Tested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c