Преглед изворни кода

Merging trunk revision 2345:
r2345 | jflesch | 2009-07-02 00:47:04 -0700 (Thu, 02 Jul 2009) | 1 line

BSD support: Fix EOF handling in coroipcs.c:req_setup_recv() and
coroipcs:coroipcs_handler_dispatch()


git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2349 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake пре 16 година
родитељ
комит
c58a057e6a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      exec/coroipcs.c

+ 3 - 1
exec/coroipcs.c

@@ -661,8 +661,10 @@ retry_recv:
 		 * EOF is detected when recvmsg return 0.
 		 */
 		ipc_disconnect (conn_info);
-#endif
+		return 0;
+#else
 		return (-1);
+#endif
 	}
 	conn_info->setup_bytes_read += res;