[libqb] [asalkeld/libqb] f54764: IPC: make each connection ref the owning service

Angus Salkeld asalkeld at redhat.com
Mon Apr 22 02:03:45 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/asalkeld/libqb
  Commit: f54764e1ec28bc21b8a36228b41950c0aaa3c032
      https://github.com/asalkeld/libqb/commit/f54764e1ec28bc21b8a36228b41950c0aaa3c032
  Author: Angus Salkeld <asalkeld at 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 at redhat.com>





More information about the quarterback-devel mailing list