mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-03 12:35:46 +00:00
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:
parent
7c6911a3b1
commit
13f3f6214d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user