HomeClusterLabs Projects
Diffusion LibQB 0f68c8c82837

ipc: Don't send the dispatch_del() function a closed fd

Description

ipc: Don't send the dispatch_del() function a closed fd

The current code closes the fd before passing it to the
provided delete function. In the default case this can generate
"epoll_ctl(del): Bad file descriptor" messages when debug logging
is enabled.

This patch swaps over the calls so that a valid FD is passed to
the delete function.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-By: Ken Gaillot <kgaillot@redhat.com>

Details

Provenance
chrissie-cAuthored on Sep 24 2015, 11:04 AM
Parents
rQ1908e6c15b6e: Fix deletion of sockets on *BSD platforms
Branches
Unknown
Tags
Unknown

Event Timeline