mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-05 04:22:59 +00:00
handle case where POLLHUP or POLLERR are not supported by OS
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1311 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
97919b8d16
commit
cdb8452805
@ -770,6 +770,12 @@ retry_recv:
|
||||
return;
|
||||
} else
|
||||
if (res == 0) {
|
||||
#if defined(OPENAIS_SOLARIS) || defined(OPENAIS_BSD) || defined(OPENAIS_DARWIN)
|
||||
/* On many OS poll never return POLLHUP or POLLERR.
|
||||
* EOF is detected when recvmsg return 0.
|
||||
*/
|
||||
libais_disconnect_request (conn_info);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ retry_recv:
|
||||
* EOF is detected when recvmsg return 0.
|
||||
*/
|
||||
if (result == 0) {
|
||||
error = SA_AIS_ERR_BAD_HANDLE;
|
||||
error = SA_AIS_ERR_LIBRARY;
|
||||
goto error_exit;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user