Skip to content
Commit 46e4ea43 authored by Derek Foreman's avatar Derek Foreman Committed by Daniel Stone
Browse files

connection: Make wl_closure_destroy() close fds of undispatched closures



When we have a closure that can't be dispatched for some reason, and it
contains file descriptors, we must close those descriptors to prevent
leaking them.

Previous commits ensure that only FDs belonging to this invocation of
the closure, i.e. not FDs provided by the client for marshalling, nor
FDs which have already been dispatched to either client or server, will
be left in the closure by destroy time.

Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
parent 52609ddf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment