Re: [PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-11-05 Thread Pekka Paalanen
On Sat, 01 Nov 2014 17:06:29 + Philip Withnall wrote: > This happens on EOF if using a poll function such as select() or > kqueue() which doesn’t distinguish EOF events. > > Currently execution should never reach the point where recvmsg() returns > EOF (len == 0). Instead, epoll() will detec

[PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-11-01 Thread Philip Withnall
This happens on EOF if using a poll function such as select() or kqueue() which doesn’t distinguish EOF events. Currently execution should never reach the point where recvmsg() returns EOF (len == 0). Instead, epoll() will detect this and indicate EPOLLHUP, which is handled a few lines above, clos

Re: [PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-09-23 Thread Pekka Paalanen
On Tue, 23 Sep 2014 18:18:24 +0200 Karsten Otto wrote: > Am 22.09.2014 um 10:49 schrieb Pekka Paalanen : > > > On Thu, 11 Sep 2014 21:42:26 +0200 > > Karsten Otto wrote: > > > >> From: Philip Withnall > >> Date: Fri, 15 Feb 2013 12:57:05 + > >> > >> This happens if the socket has been gr

Re: [PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-09-23 Thread Karsten Otto
Am 22.09.2014 um 10:49 schrieb Pekka Paalanen : > On Thu, 11 Sep 2014 21:42:26 +0200 > Karsten Otto wrote: > >> From: Philip Withnall >> Date: Fri, 15 Feb 2013 12:57:05 + >> >> This happens if the socket has been gracefully closed. >> >> Signed-off-by: Philip Withnall >> Signed-off-by: K

Re: [PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-09-22 Thread Pekka Paalanen
On Thu, 11 Sep 2014 21:42:26 +0200 Karsten Otto wrote: > From: Philip Withnall > Date: Fri, 15 Feb 2013 12:57:05 + > > This happens if the socket has been gracefully closed. > > Signed-off-by: Philip Withnall > Signed-off-by: Karsten Otto > --- > src/wayland-server.c | 2 +- > 1 file chan

[PATCH 3/4] wayland-server: Abort if a read from a client gives 0 length

2014-09-11 Thread Karsten Otto
From: Philip Withnall Date: Fri, 15 Feb 2013 12:57:05 + This happens if the socket has been gracefully closed. Signed-off-by: Philip Withnall Signed-off-by: Karsten Otto --- src/wayland-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-server.c b/src/w