1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r22964: log an error on epoll_create failing on reopen

This commit is contained in:
Andrew Tridgell 2007-05-17 02:42:14 +00:00 committed by Gerald (Jerry) Carter
parent aeca07659a
commit a69f285998
3 changed files with 4 additions and 1 deletions

View File

@ -108,8 +108,9 @@ static void epoll_reopen(struct aio_event_context *aio_ev)
struct fd_event *fde;
close(aio_ev->epoll_fd);
aio_ev->epoll_fd = epoll_create(64);
aio_ev->epoll_fd = epoll_create(MAX_AIO_QUEUE_DEPTH);
if (aio_ev->epoll_fd == -1) {
DEBUG(0,("Failed to recreate epoll handle after fork\n"));
return;
}
aio_ev->pid = getpid();

View File

@ -109,6 +109,7 @@ static void epoll_reopen(struct epoll_event_context *epoll_ev)
close(epoll_ev->epoll_fd);
epoll_ev->epoll_fd = epoll_create(64);
if (epoll_ev->epoll_fd == -1) {
DEBUG(0,("Failed to recreate epoll handle after fork\n"));
return;
}
epoll_ev->pid = getpid();

View File

@ -126,6 +126,7 @@ static void epoll_reopen(struct std_event_context *std_ev)
close(std_ev->epoll_fd);
std_ev->epoll_fd = epoll_create(64);
if (std_ev->epoll_fd == -1) {
DEBUG(0,("Failed to recreate epoll handle after fork\n"));
return;
}
std_ev->pid = getpid();