[systemd-bugs] [Bug 83930] hostnamed should emit PropertyChanged for Hostname property
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 17 00:20:32 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83930
--- Comment #2 from Marius Vollmer <marius.vollmer at redhat.com> ---
(In reply to comment #1)
> Currently, hostnamed sends dbus notifications for *any* hostname change.
> That is, if you're interested in a specific hostname, watch those
> notifications and then either parse them are read the hostname via the
> gethostname(2) syscall.
I only now noticed that gethostname will not always correspond to the Hostname
property, at least since c779a442 (released with v213)... Should hostnamed
maybe have one more property EffectiveHostname that is guaranteed to have the
same value as gethostname?
How can things like the hostname be so complicated? :-)
> Btw., I just noticed that we have the code to send notifications for
> "Hostname" changes, but we lacked a vtable annotation. I fixed this [1], so
> you should now get notifications for "Hostname" changes, too.
Great, I am happy to hear that this was just a bug, and not some fundamental
limitation, as I had feared. Thanks!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140917/d5b69240/attachment.html>
More information about the systemd-bugs
mailing list