mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
MINOR: startup: rename exit_on_waitmode_failure to exit_on_failure
As we no longer support MODE_MWORKER_WAIT for master (it became redundant with MODE_MWORKER after moving master-worker fork in init()), let's rename exit_on_waitmode_failure() callback in just exit_on_failure().
This commit is contained in:
parent
7795d49ae6
commit
3f5f57845b
@ -936,7 +936,7 @@ void reexec_on_failure()
|
|||||||
/*
|
/*
|
||||||
* Exit with an error message upon a wait-mode failure.
|
* Exit with an error message upon a wait-mode failure.
|
||||||
*/
|
*/
|
||||||
void exit_on_waitmode_failure()
|
void exit_on_failure()
|
||||||
{
|
{
|
||||||
if (!atexit_flag)
|
if (!atexit_flag)
|
||||||
return;
|
return;
|
||||||
@ -2177,7 +2177,7 @@ static void init(int argc, char **argv)
|
|||||||
global.mode |= MODE_MWORKER_WAIT;
|
global.mode |= MODE_MWORKER_WAIT;
|
||||||
master = 1;
|
master = 1;
|
||||||
atexit_flag = 1;
|
atexit_flag = 1;
|
||||||
atexit(exit_on_waitmode_failure);
|
atexit(exit_on_failure);
|
||||||
|
|
||||||
ha_notice("Initializing new worker (%d)\n", worker_pid);
|
ha_notice("Initializing new worker (%d)\n", worker_pid);
|
||||||
/* find the right mworker_proc */
|
/* find the right mworker_proc */
|
||||||
|
Loading…
Reference in New Issue
Block a user