mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-25 13:50:12 +03:00
committed by
Zbigniew Jędrzejewski-Szmek
parent
eb55241742
commit
a20a2157a8
@ -3900,6 +3900,7 @@ int unit_add_node_dependency(Unit *u, const char *what, bool wants, UnitDependen
|
||||
int unit_coldplug(Unit *u) {
|
||||
int r = 0, q;
|
||||
char **i;
|
||||
Job *uj;
|
||||
|
||||
assert(u);
|
||||
|
||||
@ -3922,8 +3923,9 @@ int unit_coldplug(Unit *u) {
|
||||
r = q;
|
||||
}
|
||||
|
||||
if (u->job) {
|
||||
q = job_coldplug(u->job);
|
||||
uj = u->job ?: u->nop_job;
|
||||
if (uj) {
|
||||
q = job_coldplug(uj);
|
||||
if (q < 0 && r >= 0)
|
||||
r = q;
|
||||
}
|
||||
|
Reference in New Issue
Block a user