u->in_dbus_queue = true;
}
-void unit_add_to_stop_when_unneeded_queue(Unit *u) {
+void unit_submit_to_stop_when_unneeded_queue(Unit *u) {
assert(u);
if (u->in_stop_when_unneeded_queue)
Iterator i;
void *v;
- /* If a dependending unit has a job queued, or is active (or in transitioning), or is marked for
+ /* If a dependent unit has a job queued, is active or transitioning, or is marked for
* restart, then don't clean this one up. */
HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i) {
void *v;
HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i)
- unit_add_to_stop_when_unneeded_queue(other);
+ unit_submit_to_stop_when_unneeded_queue(other);
}
}
if (!MANAGER_IS_RELOADING(u->manager)) {
/* Maybe we finished startup and are now ready for being stopped because unneeded? */
- unit_add_to_stop_when_unneeded_queue(u);
+ unit_submit_to_stop_when_unneeded_queue(u);
/* Maybe we finished startup, but something we needed has vanished? Let's die then. (This happens when
* something BindsTo= to a Type=oneshot unit, as these units go directly from starting to inactive,
void unit_add_to_cleanup_queue(Unit *u);
void unit_add_to_gc_queue(Unit *u);
void unit_add_to_target_deps_queue(Unit *u);
-void unit_add_to_stop_when_unneeded_queue(Unit *u);
+void unit_submit_to_stop_when_unneeded_queue(Unit *u);
int unit_merge(Unit *u, Unit *other);
int unit_merge_by_name(Unit *u, const char *other);