summaryrefslogtreecommitdiff
path: root/src/test/test-cgroup-util.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-07 21:53:37 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-07 22:39:46 +0100
commit4c49ab0e7a7f9f14f4308476257cd3548d0b4694 (patch)
tree97461154a8718b8d0260e724e91449a15c8afbdd /src/test/test-cgroup-util.c
parentd8fba7c6ccea5e60f31f329f481fb2cdf6907ce9 (diff)
systemctl: fix and refactor wait_for_jobs
wait_for_jobs was ignoring the errors from the jobs stored in r. It would only ever return whether the call to sd_bus_remove_filter went ok. This patch changes it to return the first job related error encountered. If a job related error is found, then the result of the call to sd_bus_remove_filter is ignored. wait_for_jobs was a bit hard to read so I split it up to avoid the goto and deep nesting.
Diffstat (limited to 'src/test/test-cgroup-util.c')
0 files changed, 0 insertions, 0 deletions