message_send_all(parent->msg_ctx, MSG_SMB_UNLOCK, NULL, 0, NULL);
messaging_send_buf(parent->msg_ctx, parent->cleanupd,
- MSG_SMB_BRL_VALIDATE, NULL, 0);
+ MSG_SMB_UNLOCK, NULL, 0);
}
static void remove_child_pid(struct smbd_parent_context *parent,
void *private_data, uint32_t msg_type,
struct server_id server_id,
DATA_BLOB *data);
+static void smbd_cleanupd_unlock(struct messaging_context *msg,
+ void *private_data, uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB *data);
struct tevent_req *smbd_cleanupd_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
return tevent_req_post(req, ev);
}
- status = messaging_register(msg, NULL, MSG_SMB_BRL_VALIDATE,
- brl_revalidate);
+ status = messaging_register(msg, NULL, MSG_SMB_UNLOCK,
+ smbd_cleanupd_unlock);
if (tevent_req_nterror(req, status)) {
return tevent_req_post(req, ev);
}
tevent_req_done(req);
}
+static void smbd_cleanupd_unlock(struct messaging_context *msg,
+ void *private_data, uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB *data)
+{
+ brl_revalidate(msg, private_data, msg_type, server_id, data);
+}
+
static void smbd_cleanupd_process_exited(struct messaging_context *msg,
void *private_data, uint32_t msg_type,
struct server_id server_id,