]> git.proxmox.com Git - mirror_corosync.git/commit
qdevice: Ensure to exit if ipc socket is closed
authorJan Friesse <jfriesse@redhat.com>
Tue, 31 May 2016 07:44:28 +0000 (09:44 +0200)
committerJan Friesse <jfriesse@redhat.com>
Tue, 28 Jun 2016 11:58:42 +0000 (13:58 +0200)
commit509d4b1511083b8e337188be78f80a1d5025ab50
treec187026cb0fada81fecd47ea14bb89369ed30825
parent91b1f44e8fec08cda6aa025d1e43842bbaba5e70
qdevice: Ensure to exit if ipc socket is closed

When ipc socket was closed before poll and new connection got same fd as
original IPC socket, shutdown didn't work. Solution is to check if IPC
socket is active during poll array create.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
qdevices/corosync-qnetd.c
qdevices/qdevice-ipc.c
qdevices/qdevice-ipc.h
qdevices/qdevice-net-poll.c
qdevices/qnetd-ipc.c
qdevices/qnetd-ipc.h
qdevices/unix-socket-ipc.c
qdevices/unix-socket-ipc.h