[Cluster-devel] [PATCH] cman: Prevent libcman from causing SIGPIPE

Fabio M. Di Nitto fdinitto at redhat.com
Mon Dec 17 10:12:48 UTC 2012


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 <ccaulfie at redhat.com>




More information about the Cluster-devel mailing list