From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christine Caulfield Date: Mon, 17 Dec 2012 09:23:21 +0000 Subject: [Cluster-devel] [PATCH] cman: Prevent libcman from causing SIGPIPE Message-ID: <50CEE489.8010603@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit If corosync goes down/is shut down cman will return 0 from cman_dispatch and close the socket. However, if a cman write operation is issued before this happens then SIGPIPE can result from the writev() call to an open, but disconnected, FD. This patch changes writev() to sendmg() so it can pass MSG_NOSIGNAL to the system call and prevent SIGPIPEs from occurring. Signed-Off-By: Christine Caulfield -------------- next part -------------- A non-text attachment was scrubbed... Name: cman_sigpipe.patch Type: text/x-patch Size: 579 bytes Desc: not available URL: