瀏覽代碼

Merge trunk revision 2647:
r2647 | honzaf | 2010-01-21 05:46:09 -0700 (Thu, 21 Jan 2010) | 5 lines

poll_dispatch_delete - ability to return 0

Patch fixes poll_dispatch_delete, so it is able to return 0
(success), when requested FD was found.



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

Steven Dake 16 年之前
父節點
當前提交
72f5b55898
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      exec/coropoll.c

+ 2 - 0
exec/coropoll.c

@@ -260,6 +260,8 @@ int poll_dispatch_delete (
 			poll_instance->ufds[i].fd = -1;
 			poll_instance->poll_entries[i].ufd.fd = -1;
 			poll_instance->poll_entries[i].ufd.revents = 0;
+
+			res = 0;
 			break;
 		}
 	}