Patch from Jerome Flesch to correctly reference count on bsd and solaris

platforms in the IPC system to avoid cpu spinning.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2237 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2009-06-14 10:40:50 +00:00
parent 7c6911a3b1
commit 13f3f6214d

View File

@ -1334,7 +1334,6 @@ int coroipcs_handler_dispatch (
res = 0;
break;
}
coroipcs_refcount_dec (conn_info);
}
#if defined(COROSYNC_SOLARIS) || defined(COROSYNC_BSD) || defined(COROSYNC_DARWIN)
/* On many OS poll never return POLLHUP or POLLERR.
@ -1342,9 +1341,11 @@ int coroipcs_handler_dispatch (
*/
if (res == 0) {
ipc_disconnect (conn_info);
coroipcs_refcount_dec (conn_info);
return (0);
}
#endif
coroipcs_refcount_dec (conn_info);
}
coroipcs_refcount_inc (conn_info);