Re: [PATCH 3/3] shm: Avoid file descriptor leak upon unsuccessful mmap

2013-11-15 Thread Kristian Høgsberg
On Fri, Nov 15, 2013 at 02:17:56PM +0100, Lubomir Rintel wrote: > It would be possible to make the compositor leak file descriptors by > passing descriptors of open unmmapable files to it, such as /dev/null. > > Signed-off-by: Lubomir Rintel > --- > src/wayland-shm.c | 2 +- > 1 file changed, 1

[PATCH 3/3] shm: Avoid file descriptor leak upon unsuccessful mmap

2013-11-15 Thread Lubomir Rintel
It would be possible to make the compositor leak file descriptors by passing descriptors of open unmmapable files to it, such as /dev/null. Signed-off-by: Lubomir Rintel --- src/wayland-shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-shm.c b/src/wayland-shm.