diff options
Diffstat (limited to 'ctdb/server/ctdb_persistent.c')
-rw-r--r-- | ctdb/server/ctdb_persistent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_persistent.c b/ctdb/server/ctdb_persistent.c index d38aa8d9e7..1d5ab351c6 100644 --- a/ctdb/server/ctdb_persistent.c +++ b/ctdb/server/ctdb_persistent.c @@ -19,7 +19,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" @@ -566,13 +566,14 @@ struct childwrite_handle *ctdb_childwrite(struct ctdb_db_context *ctdb_db, DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d for ctdb_childwrite\n", result->fd[0])); result->fde = event_add_fd(ctdb_db->ctdb->ev, result, result->fd[0], - EVENT_FD_READ|EVENT_FD_AUTOCLOSE, childwrite_handler, + EVENT_FD_READ, childwrite_handler, (void *)result); if (result->fde == NULL) { talloc_free(result); ctdb_db->ctdb->statistics.pending_childwrite_calls--; return NULL; } + tevent_fd_set_auto_close(result->fde); result->start_time = timeval_current(); |