1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00

r23301: merged from ctdb

This commit is contained in:
Andrew Tridgell
2007-06-02 00:32:49 +00:00
committed by Gerald (Jerry) Carter
parent d89088128a
commit 76b981fcef
3 changed files with 6 additions and 0 deletions

View File

@@ -393,6 +393,8 @@ static int aio_event_fd_destructor(struct fd_event *fde)
struct aio_event_context *aio_ev = talloc_get_type(ev->additional_data,
struct aio_event_context);
epoll_check_reopen(aio_ev);
aio_ev->num_fd_events--;
aio_ev->destruction_count++;

View File

@@ -342,6 +342,8 @@ static int epoll_event_fd_destructor(struct fd_event *fde)
struct epoll_event_context *epoll_ev = talloc_get_type(ev->additional_data,
struct epoll_event_context);
epoll_check_reopen(epoll_ev);
epoll_ev->num_fd_events--;
epoll_ev->destruction_count++;

View File

@@ -379,6 +379,8 @@ static int std_event_fd_destructor(struct fd_event *fde)
struct std_event_context *std_ev = talloc_get_type(ev->additional_data,
struct std_event_context);
epoll_check_reopen(std_ev);
if (std_ev->maxfd == fde->fd) {
std_ev->maxfd = EVENT_INVALID_MAXFD;
}