From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Mon, 17 Dec 2012 11:12:48 +0100 Subject: [Cluster-devel] [PATCH] cman: Prevent libcman from causing SIGPIPE In-Reply-To: <50CEE489.8010603@redhat.com> References: <50CEE489.8010603@redhat.com> Message-ID: <50CEF020.3070501@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ACK On 12/17/2012 10:23 AM, Christine Caulfield wrote: > 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