This patch includes the MSG_NOSIGNAL patch posted by Steven earlier but
add s a couple of other things needed to get IPC working on Mac OS/X.

-- 

Chrissie
Index: exec/coroipcs.c
===================================================================
--- exec/coroipcs.c	(revision 1909)
+++ exec/coroipcs.c	(working copy)
@@ -72,7 +72,7 @@
 #include "coroipcs.h"
 #include <corosync/ipc_gen.h>
 
-#ifdef COROSYNC_SOLARIS
+#ifndef MSG_NOSIGNAL
 #define MSG_NOSIGNAL 0
 #endif
 
@@ -399,9 +399,9 @@
 
 #endif
 
-#ifdef COROSYNC_LINUX
 	iov_recv.iov_base = &conn_info->setup_msg[conn_info->setup_bytes_read];
 	iov_recv.iov_len = sizeof (mar_req_setup_t) - conn_info->setup_bytes_read;
+#ifdef COROSYNC_LINUX
 	setsockopt(conn_info->fd, SOL_SOCKET, SO_PASSCRED, &on, sizeof (on));
 #endif
 
Index: exec/main.c
===================================================================
--- exec/main.c	(revision 1909)
+++ exec/main.c	(working copy)
@@ -724,6 +724,7 @@
 	(void)signal (SIGSEGV, sigsegv_handler);
 	(void)signal (SIGABRT, sigabrt_handler);
 	(void)signal (SIGQUIT, sigquit_handler);
+	(void)signal (SIGPIPE, SIG_IGN);
 	
 	corosync_timer_init (
 		serialize_lock,
Index: lib/coroipcc.c
===================================================================
--- lib/coroipcc.c	(revision 1909)
+++ lib/coroipcc.c	(working copy)
@@ -100,6 +100,10 @@
 }
 #endif 
 
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
 static int
 coroipcc_send (
 	int s,
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to