build: Use FAIL_EXIT1 () on failure to exec child [BZ #23990]

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Girish Joshi 2020-05-29 10:11:24 -03:00 committed by Adhemerval Zanella
parent 5d5b3bd94c
commit 9e2dc874e6

View file

@ -392,7 +392,7 @@ recursive_remove (char *path)
/* "rm" would have already printed a suitable error message. */
if (! WIFEXITED (status)
|| WEXITSTATUS (status) != 0)
exit (1);
FAIL_EXIT1 ("exec child returned status: %d", status);
break;
}