From eaa0b533da49bb6a77e3664252b7fc0b3c4b6e63 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 10 Feb 2022 18:23:59 +0100 Subject: [PATCH] core/trivial: add code comment to _set_hostname() --- src/core/nm-policy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/nm-policy.c b/src/core/nm-policy.c index cb5b543e9d..7e9c4bdce3 100644 --- a/src/core/nm-policy.c +++ b/src/core/nm-policy.c @@ -609,7 +609,10 @@ _set_hostname(NMPolicy *self, const char *new_hostname, const char *msg) _LOGI(LOGD_DNS, "set-hostname: set hostname to '%s' (%s)", name, msg); /* Ask NMSettings to update the transient hostname using its - * systemd-hostnamed proxy */ + * systemd-hostnamed proxy. + * + * FIXME(shutdown): an async request must be cancellable, so we are guaranteed + * to tear down in a reasonable time.*/ nm_hostname_manager_set_transient_hostname(priv->hostname_manager, name, settings_set_hostname_cb,