chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initctl: talk to systemd via the abstract private bus
[elogind.git]
/
src
/
job.c
diff --git
a/src/job.c
b/src/job.c
index 887de92cadf88eb70033ff665e6be829b421b513..78fe136328500a4ab29af7c438966112a394d8da 100644
(file)
--- a/
src/job.c
+++ b/
src/job.c
@@
-56,7
+56,7
@@
void job_free(Job *j) {
/* Detach from next 'bigger' objects */
if (j->installed) {
/* Detach from next 'bigger' objects */
if (j->installed) {
- bus_job_send_removed_signal(j);
+ bus_job_send_removed_signal(j
, !j->failed
);
if (j->unit->meta.job == j) {
j->unit->meta.job = NULL;
if (j->unit->meta.job == j) {
j->unit->meta.job = NULL;
@@
-144,11
+144,12
@@
void job_dependency_delete(Job *subject, Job *object, bool *matters) {
}
void job_dump(Job *j, FILE*f, const char *prefix) {
}
void job_dump(Job *j, FILE*f, const char *prefix) {
-
-
assert(j);
assert(f);
assert(j);
assert(f);
+ if (!prefix)
+ prefix = "";
+
fprintf(f,
"%s-> Job %u:\n"
"%s\tAction: %s -> %s\n"
fprintf(f,
"%s-> Job %u:\n"
"%s\tAction: %s -> %s\n"
@@
-475,6
+476,7
@@
int job_finish_and_invalidate(Job *j, bool success) {
return 0;
}
return 0;
}
+ j->failed = !success;
u = j->unit;
t = j->type;
job_free(j);
u = j->unit;
t = j->type;
job_free(j);