projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4659bf6
)
shared: add some minor comments
author
Lennart Poettering
<lennart@poettering.net>
Mon, 1 Apr 2019 16:41:19 +0000
(18:41 +0200)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 20:34:53 +0000
(
05:34
+0900)
src/shared/bus-wait-for-jobs.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-wait-for-jobs.c
b/src/shared/bus-wait-for-jobs.c
index
2f2b0a5
..
4e6b862
100644
(file)
--- a/
src/shared/bus-wait-for-jobs.c
+++ b/
src/shared/bus-wait-for-jobs.c
@@
-11,8
+11,11
@@
typedef struct BusWaitForJobs {
sd_bus *bus;
+
+ /* The set of jobs to wait for, as bus object paths */
Set *jobs;
+ /* The unit name and job result of the last Job message */
char *name;
char *result;
@@
-52,6
+55,7
@@
static int match_job_removed(sd_bus_message *m, void *userdata, sd_bus_error *er
free(found);
(void) free_and_strdup(&d->result, empty_to_null(result));
+
(void) free_and_strdup(&d->name, empty_to_null(unit));
return 0;