summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-23 09:46:04 +0200
committerLuca Boccassi <bluca@debian.org>2024-06-12 00:17:38 +0200
commitec8bbd8adb9463471803aadd9a8ba2a326d7a49d (patch)
tree6afe19876525da59f131e668b2f17a66db589479 /src/portable
parenthostnamed: don't allow hostnamed to exit on idle if varlink connections are s... (diff)
downloadsystemd-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.c5
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[]) {