diff options
Diffstat (limited to 'ctdb/server/ctdb_lockwait.c')
-rw-r--r-- | ctdb/server/ctdb_lockwait.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_lockwait.c b/ctdb/server/ctdb_lockwait.c index afbb921439..de802187cf 100644 --- a/ctdb/server/ctdb_lockwait.c +++ b/ctdb/server/ctdb_lockwait.c @@ -18,7 +18,7 @@ */ #include "includes.h" -#include "lib/events/events.h" +#include "lib/tevent/tevent.h" #include "system/filesys.h" #include "system/wait.h" #include "db_wrap.h" @@ -153,13 +153,14 @@ struct lockwait_handle *ctdb_lockwait(struct ctdb_db_context *ctdb_db, talloc_set_destructor(result, lockwait_destructor); result->fde = event_add_fd(ctdb_db->ctdb->ev, result, result->fd[0], - EVENT_FD_READ|EVENT_FD_AUTOCLOSE, lockwait_handler, + EVENT_FD_READ, lockwait_handler, (void *)result); if (result->fde == NULL) { talloc_free(result); ctdb_db->ctdb->statistics.pending_lockwait_calls--; return NULL; } + tevent_fd_set_auto_close(result->fde); result->start_time = timeval_current(); |