HomeClusterLabs Projects
Diffusion LibQB f54764e1ec28

IPC: make each connection ref the owning service

Description

IPC: make each connection ref the owning service

This is because the connection functions use the c->service pointer
and this needs to be mirrored in the reference counting.

The service can only be free'd when all connections are destroyed
and the user as unreferenced all previously referenced connections
and the service.

Fixes #62
Thanks to Jan Friesse for the reproducer
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>

Details

Provenance
Angus Salkeld <asalkeld@redhat.com>Authored on Apr 21 2013, 10:03 PM
Parents
rQf16dca6df9b5: Indicate when/why qb_rb_force_close() fails to remove share memory files
Branches
Unknown
Tags
Unknown

Event Timeline