]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: startup: prefix apply_master_worker_mode with mworker_*
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Fri, 22 Nov 2024 22:33:31 +0000 (23:33 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 14:20:24 +0000 (15:20 +0100)
This patch prepares the move of apply_master_worker_mode in mworker.c. So,
let's at first rename it to mworker_apply_master_worker_mode.

src/haproxy.c

index ca31b89586f7db414a2b6c4155511eea4f46eaf8..4590ea364d27dba6a89beebb952787ce8c01157f 100644 (file)
@@ -1803,7 +1803,7 @@ static void handle_pidfile()
  * (master CLI applet is attached in master process to MASTER proxy). This
  * function returns only if everything is OK. If something fails, it exits.
  */
-static void apply_master_worker_mode()
+static void mworker_apply_master_worker_mode()
 {
        int worker_pid;
        struct mworker_proc *child;
@@ -3494,7 +3494,7 @@ int main(int argc, char **argv)
                /* fork and run binary from command keyword in program section */
                mworker_ext_launch_all();
                /* fork worker */
-               apply_master_worker_mode();
+               mworker_apply_master_worker_mode();
        }
 
        /* Worker, daemon, foreground modes read the rest of the config */