Skip to content

Commit 5ac9819

Browse files
authored
Merge pull request #2419 from pqarmitage/updates
ipvs: Update status code of misc checker if changes while in fault state
2 parents 99de247 + a4258a6 commit 5ac9819

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

keepalived/check/check_misc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ misc_check_child_thread(thread_ref_t thread)
403403
checker->cur_weight = 0;
404404
misck_checker->last_exit_code = status;
405405
}
406-
}
406+
} else // if (status != misck_checker->last_exit_code)
407+
misck_checker->last_exit_code = status;
407408
}
408409
else if (WIFSIGNALED(wait_status)) {
409410
if (misck_checker->state == SCRIPT_STATE_REQUESTING_TERMINATION && WTERMSIG(wait_status) == SIGTERM) {

0 commit comments

Comments
 (0)