[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 redhat com>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]