client: Consume file descriptors destined for zombie proxies
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 6 Dec 2017 17:22:23 +0000 (11:22 -0600)
committerDaniel Stone <daniels@collabora.com>
Tue, 9 Jan 2018 15:20:00 +0000 (15:20 +0000)
commit239ba39331420f953de35c337ae57db35573f9cb
tree3c8efe369f2a4aa7151b8fe2f22d206a9eeeff29
parent4485ed1f59cb8695f3ab690e074abd7e79a27640
client: Consume file descriptors destined for zombie proxies

We need to close file descriptors sent to zombie proxies to avoid leaking
them, and perhaps more importantly, to prevent them from being dispatched
in events on other objects (since they would previously be left in the
buffer and potentially fed to following events destined for live proxies)

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/connection.c
src/wayland-client.c
src/wayland-private.h