Use "return log_error_errno" in more places"

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-07-22 21:25:09 -04:00
parent 31b14fdb6f
commit d710aaf7a5
9 changed files with 26 additions and 42 deletions
+2 -4
View File
@@ -5537,10 +5537,8 @@ static int enable_sysv_units(const char *verb, char **args) {
}
j = wait_for_terminate(pid, &status);
if (j < 0) {
log_error_errno(j, "Failed to wait for child: %m");
return j;
}
if (j < 0)
return log_error_errno(j, "Failed to wait for child: %m");
if (status.si_code == CLD_EXITED) {
if (streq(verb, "is-enabled")) {