cpglockd: Don't remove SIGINT/SIGTERM handler

The SIGINT and SIGTERM handler was returning -1 when either of the
signals was received and there were clients connected. The return of
-1 caused libqb to drop the handler, which resulted in a subsequent
SIGINT or SIGTERM causing the process to exit, even if there were
clients connected.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
cpglock: Update .gitignore files

Update .gitignore files

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
cpglock: Whitespace and comment cleanup.

Whitespace and comment cleanup.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
cpglock: Small code cleanup

- cpglockd: clean up flags passed to qb_loop_poll_add()

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
cpglock: Small code cleanups

- sock_connect: Check for overly long path before creating the socket
- remove unused assert.h include

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>