summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-24 18:48:11 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-24 18:48:11 +0200
commita572b2e00685af01b8b593e2f20c263b22840b32 (patch)
treef85d789261c9c5875ce8db1e3dd545b64d754848 /src
parent0b76b4d8c28e8d82422ddeea2cc3c079fe4bb3dc (diff)
delta: use wait_for_terminate_and_warn() to generate warnin when diff fails
Diffstat (limited to 'src')
-rw-r--r--src/delta/delta.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c
index 2fdbeeae81..25c4a0bcfc 100644
--- a/src/delta/delta.c
+++ b/src/delta/delta.c
@@ -159,7 +159,7 @@ static int notify_override_unchanged(const char *f) {
static int found_override(const char *top, const char *bottom) {
_cleanup_free_ char *dest = NULL;
- int k, r;
+ int k;
pid_t pid;
assert(top);
@@ -194,10 +194,7 @@ static int found_override(const char *top, const char *bottom) {
_exit(1);
}
- r = wait_for_terminate(pid, NULL);
- if (r < 0)
- log_warning("Failed to wait for diff: %s", strerror(-r));
-
+ wait_for_terminate_and_warn("diff", pid);
putchar('\n');
return k;