[systemd-bugs] [Bug 83930] hostnamed should emit PropertyChanged for Hostname property

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 16 08:37:41 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83930

David Herrmann <dh.herrmann at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |dh.herrmann at gmail.com

--- Comment #1 from David Herrmann <dh.herrmann at gmail.com> ---
hostnamed sets the kernel hostname itself, so there is little reason in
tracking it. We don't support other processes setting the kernel hostname
directly (and there is little reason for it), but only via hostnamed APIs.

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.

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.


[1]
http://cgit.freedesktop.org/systemd/systemd/commit/?id=caffbef636ec48958dcb22e4b4140a9889a6a769

-- 
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/20140916/db202580/attachment.html>


More information about the systemd-bugs mailing list