[systemd-devel] Can't Inhibit shutdown with logind
Brendan J
bhenryj0117 at googlemail.com
Mon May 27 17:28:48 PDT 2013
Hi all,
I'm trying to use the Inhibit() API exposed by logind on dbus
(org.freedesktop.login1.Manager) to prevent shutdown.
The call seems superficially to have worked, as the result from
ListInhibitors() includes the block I created. However my machine is not
prevented from shutting down.
I'm pretty stumped on how to proceed with debugging this, beyond checking
what signals get sent (my program receives PrepareForShutdown(true)).
Could anyone suggest anything?
Code: http://pastebin.com/h0cWwz1m
Many thanks,
Brendan
(p.s. some relevant reference links to save clicking:
http://www.freedesktop.org/wiki/Software/systemd/inhibit/
http://www.freedesktop.org/wiki/Software/systemd/logind/
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130528/3e2795f0/attachment.html>
More information about the systemd-devel
mailing list