Explorar el Código

klishd: Fix exit status of service process

Serj Kalichev hace 2 años
padre
commit
767a6e6623
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/klishd/klishd.c

+ 1 - 1
bin/klishd/klishd.c

@@ -563,7 +563,7 @@ static bool_t wait_for_child_ev(faux_eloop_t *eloop, faux_eloop_type_e type,
 				child_pid, WTERMSIG(wstatus));
 		} else {
 			syslog(LOG_ERR, "Service process %d was terminated: %d",
-				child_pid, WIFEXITED(wstatus));
+				child_pid, WEXITSTATUS(wstatus));
 		}
 	}