diff --git a/ctdb/server/ctdb_logging.c b/ctdb/server/ctdb_logging.c index 9aba7f839c1..770deb6a321 100644 --- a/ctdb/server/ctdb_logging.c +++ b/ctdb/server/ctdb_logging.c @@ -509,7 +509,7 @@ int ctdb_set_child_logging(struct ctdb_context *ctdb) return -1; } - event_add_fd(ctdb->ev, ctdb, p[0], EVENT_FD_READ, + event_add_fd(ctdb->ev, ctdb->log, p[0], EVENT_FD_READ, ctdb_log_handler, ctdb->log); set_close_on_exec(p[0]); ctdb->log->pfd = p[0];