summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-02-10 18:23:59 +0100
committerThomas Haller <thaller@redhat.com>2022-02-10 18:24:07 +0100
commiteaa0b533da49bb6a77e3664252b7fc0b3c4b6e63 (patch)
tree0cba448d1efa75ce27d7a5e5fa4af002e689f7d0
parent122070142d822d884b13d1ee12b192de559a3b63 (diff)
downloadNetworkManager-eaa0b533da49bb6a77e3664252b7fc0b3c4b6e63.tar.gz
core/trivial: add code comment to _set_hostname()
-rw-r--r--src/core/nm-policy.c5
1 files changed, 4 insertions, 1 deletions
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,