delta: use wait_for_terminate_and_warn() to generate warnin when diff fails

This commit is contained in:
Lennart Poettering 2014-10-24 18:48:11 +02:00
parent 0b76b4d8c2
commit a572b2e006
1 changed files with 2 additions and 5 deletions

View File

@ -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;