diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-05-23 09:46:04 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-06-12 00:17:38 +0200 |
commit | ec8bbd8adb9463471803aadd9a8ba2a326d7a49d (patch) | |
tree | 6afe19876525da59f131e668b2f17a66db589479 /src/portable | |
parent | hostnamed: don't allow hostnamed to exit on idle if varlink connections are s... (diff) | |
download | systemd-ec8bbd8adb9463471803aadd9a8ba2a326d7a49d.tar.xz systemd-ec8bbd8adb9463471803aadd9a8ba2a326d7a49d.zip |
tree-wide: never consider service idle if polkit authentication is still pending
Let's be correct on this.
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portabled.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/portabled.c b/src/portable/portabled.c index d46ac018a3..0286bf59e7 100644 --- a/src/portable/portabled.c +++ b/src/portable/portabled.c @@ -117,9 +117,10 @@ static int manager_startup(Manager *m) { } static bool check_idle(void *userdata) { - Manager *m = userdata; + Manager *m = ASSERT_PTR(userdata); - return !m->operations; + return !m->operations && + hashmap_isempty(m->polkit_registry); } static int run(int argc, char *argv[]) { |