Explorar el Código

Fix sigpipe handling to ignore sigpipes on systems which support them.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2419 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake hace 16 años
padre
commit
215ad336f2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      exec/main.c

+ 1 - 1
exec/main.c

@@ -820,7 +820,7 @@ int main (int argc, char **argv)
 	(void)signal (SIGSEGV, sigsegv_handler);
 	(void)signal (SIGABRT, sigabrt_handler);
 	(void)signal (SIGQUIT, sigquit_handler);
-#if MSG_NOSIGNAL == 0
+#if MSG_NOSIGNAL != 0
 	(void)signal (SIGPIPE, SIG_IGN);
 #endif