summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-01 03:35:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-01 03:35:04 +0200
commit18ffdfda48c327f56cac0aabdc6bada91cc9b7df (patch)
tree112ed572c2c55e60a89dbd0179f416e2c59f9bfa /src/manager.c
parent8f6df3fa98ee74eaf5c34dddd272d2e3c10c3c27 (diff)
unit: unify some code
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/manager.c b/src/manager.c
index ff1c70b484..e2f13b20ec 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2591,17 +2591,10 @@ bool manager_unit_pending_inactive(Manager *m, const char *name) {
assert(name);
/* Returns true if the unit is inactive or going down */
-
if (!(u = manager_get_unit(m, name)))
return true;
- if (UNIT_IS_INACTIVE_OR_DEACTIVATING(unit_active_state(u)))
- return true;
-
- if (u->meta.job && u->meta.job->type == JOB_STOP)
- return true;
-
- return false;
+ return unit_pending_inactive(u);
}
static const char* const manager_running_as_table[_MANAGER_RUNNING_AS_MAX] = {