瀏覽代碼

klishd: Fix exit status of service process

Serj Kalichev 2 年之前
父節點
當前提交
767a6e6623
共有 1 個文件被更改,包括 1 次插入1 次删除
  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));
 		}
 	}