chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install: various improvements
[elogind.git]
/
src
/
job.c
diff --git
a/src/job.c
b/src/job.c
index 0a9ce153f697a9521b5b53efd32d51ee19d9b1f8..7cbde80b38036689b3deffb8fac4b0bcad3f5a56 100644
(file)
--- a/
src/job.c
+++ b/
src/job.c
@@
-461,7
+461,6
@@
int job_finish_and_invalidate(Job *j, bool success) {
assert(j);
assert(j->installed);
assert(j);
assert(j->installed);
- log_debug("Job %s/%s finished, success=%s", j->unit->meta.id, job_type_to_string(j->type), yes_no(success));
job_add_to_dbus_queue(j);
/* Patch restart jobs so that they become normal start jobs */
job_add_to_dbus_queue(j);
/* Patch restart jobs so that they become normal start jobs */
@@
-471,13
+470,15
@@
int job_finish_and_invalidate(Job *j, bool success) {
j->unit->meta.id, job_type_to_string(j->type),
j->unit->meta.id, job_type_to_string(JOB_START));
j->unit->meta.id, job_type_to_string(j->type),
j->unit->meta.id, job_type_to_string(JOB_START));
- j->state = JOB_
RUNN
ING;
+ j->state = JOB_
WAIT
ING;
j->type = JOB_START;
job_add_to_run_queue(j);
return 0;
}
j->type = JOB_START;
job_add_to_run_queue(j);
return 0;
}
+ log_debug("Job %s/%s finished, success=%s", j->unit->meta.id, job_type_to_string(j->type), yes_no(success));
+
j->failed = !success;
u = j->unit;
t = j->type;
j->failed = !success;
u = j->unit;
t = j->type;