From: Andrew Tridgell Date: Thu, 17 May 2007 02:43:09 +0000 (+1000) Subject: merged debug changes from samba4 X-Git-Tag: tevent-0.9.20~348^2~2720 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d32a6dd50c52d13ffe7c5d589aaf5cdebbc8381;p=thirdparty%2Fsamba.git merged debug changes from samba4 (This used to be ctdb commit f01180148635b9fcc0f50beddb87be0a2071dfd4) --- diff --git a/ctdb/lib/events/events_aio.c b/ctdb/lib/events/events_aio.c index 68109d7265e..e78487547f0 100644 --- a/ctdb/lib/events/events_aio.c +++ b/ctdb/lib/events/events_aio.c @@ -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(); diff --git a/ctdb/lib/events/events_epoll.c b/ctdb/lib/events/events_epoll.c index cfea8363abb..5b6266fb490 100644 --- a/ctdb/lib/events/events_epoll.c +++ b/ctdb/lib/events/events_epoll.c @@ -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(); diff --git a/ctdb/lib/events/events_standard.c b/ctdb/lib/events/events_standard.c index bae4d69688e..50ba4ed79f0 100644 --- a/ctdb/lib/events/events_standard.c +++ b/ctdb/lib/events/events_standard.c @@ -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();