Branch: refs/heads/master
Home:
https://github.com/asalkeld/libqb
Commit: f54764e1ec28bc21b8a36228b41950c0aaa3c032
https://github.com/asalkeld/libqb/commit/f54764e1ec28bc21b8a36228b41950c0...
Author: Angus Salkeld <asalkeld(a)redhat.com>
Date: 2013-04-21 (Sun, 21 Apr 2013)
Changed paths:
M examples/ipcserver.c
M lib/ipcs.c
M tests/check_ipc.c
Log Message:
-----------
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(a)redhat.com>