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:
parent
aeca07659a
commit
a69f285998
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user