]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: startup: rename exit_on_waitmode_failure to exit_on_failure
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 9 Jul 2024 13:09:40 +0000 (15:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
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().

src/haproxy.c

index f57dffb297f8cb9a05b44a1d9ef632110de65606..74636264134cf90c2d60b1f80952de87d35c9ffe 100644 (file)
@@ -936,7 +936,7 @@ void reexec_on_failure()
 /*
  * Exit with an error message upon a wait-mode failure.
  */
-void exit_on_waitmode_failure()
+void exit_on_failure()
 {
        if (!atexit_flag)
                return;
@@ -2177,7 +2177,7 @@ static void init(int argc, char **argv)
                        global.mode |= MODE_MWORKER_WAIT;
                        master = 1;
                        atexit_flag = 1;
-                       atexit(exit_on_waitmode_failure);
+                       atexit(exit_on_failure);
 
                        ha_notice("Initializing new worker (%d)\n", worker_pid);
                        /* find the right mworker_proc */