mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-21 14:40:06 +00:00
Make delete operation work properly in coropoll.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2418 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
8ec3339ba3
commit
eb5fa99cae
@ -257,6 +257,7 @@ int poll_dispatch_delete (
|
||||
res = -EBADF;
|
||||
for (i = 0; i < poll_instance->poll_entry_count; i++) {
|
||||
if (poll_instance->poll_entries[i].ufd.fd == fd) {
|
||||
poll_instance->ufds[i].fd = -1;
|
||||
poll_instance->poll_entries[i].ufd.fd = -1;
|
||||
poll_instance->poll_entries[i].ufd.revents = 0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user