projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a60477
)
core: coldplug possible nop_job
author
ypf791
<ypf791@gmail.com>
Fri, 19 Jul 2019 10:28:04 +0000
(18:28 +0800)
committer
Michael Biebl
<biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000
(08:17 +0000)
(cherry picked from commit
b49e14d5f3081dfcd363d8199a14c0924ae9152f
)
(cherry picked from commit
a20a2157a85dd277c5dc1398fd75f565ca941933
)
Gbp-Pq: Name core-coldplug-possible-nop_job.patch
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index 64eb12733aa783960779f5c3700e519abf51d720..cedcb3f5b3f31edeeada5e22d7c145b72363ffe7 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-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;
}