mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-27 03:13:34 +00:00
Set nosigpipe socket option on platforms that send sigpipes in coroipcc.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2273 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
638dae5f2b
commit
ea5d3ba241
@ -94,7 +94,7 @@ DECLARE_HDB_DATABASE(ipc_hdb,ipc_hdb_destructor);
|
||||
#endif
|
||||
|
||||
#ifdef SO_NOSIGPIPE
|
||||
void socket_nosigpipe(int s)
|
||||
static void socket_nosigpipe(int s)
|
||||
{
|
||||
int on = 1;
|
||||
setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, (void *)&on, sizeof(on));
|
||||
@ -546,6 +546,9 @@ coroipcc_service_connect (
|
||||
if (request_fd == -1) {
|
||||
return (CS_ERR_LIBRARY);
|
||||
}
|
||||
#ifdef SO_NOSIGPIPE
|
||||
socket_nosigpipe (request_fd);
|
||||
#endif
|
||||
|
||||
memset (&address, 0, sizeof (struct sockaddr_un));
|
||||
address.sun_family = AF_UNIX;
|
||||
|
Loading…
Reference in New Issue
Block a user