haproxy/include/haproxy/mworker.h
William Lallemand 7cb6167d04 MAJOR: mworker: remove program section support
This patch removes completely the support for the program section, the
parsing of the section as well as the internals in the mworker does not
support it anymore.

The program section was considered dysfonctional and not fully
compatible with the "mworker V3" model. Users that want to run an
external program must use their init system.

The documentation is cleaned up in another patch.
2025-06-25 16:11:34 +02:00

58 lines
1.5 KiB
C

/*
* include/haproxy/mworker-t.h
* Master Worker function prototypes.
*
* Copyright HAProxy Technologies 2019 - William Lallemand <wlallemand@haproxy.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
*/
#ifndef _HAPROXY_MWORKER_H_
#define _HAPROXY_MWORKER_H_
#include <haproxy/limits.h>
#include <haproxy/mworker-t.h>
#include <haproxy/signal-t.h>
extern int max_reloads;
extern int load_status;
extern struct mworker_proc *proc_self;
/* master CLI configuration (-S flag) */
extern struct list mworker_cli_conf;
void mworker_proc_list_to_env(void);
int mworker_env_to_proc_list(void);
void mworker_block_signals(void);
void mworker_unblock_signals(void);
void mworker_broadcast_signal(struct sig_handler *sh);
void mworker_catch_sighup(struct sig_handler *sh);
void mworker_catch_sigterm(struct sig_handler *sh);
void mworker_catch_sigchld(struct sig_handler *sh);
void mworker_accept_wrapper(int fd);
void mworker_cleanlisteners(void);
int mworker_child_nb(void);
void mworker_kill_max_reloads(int sig);
struct mworker_proc *mworker_proc_new();
void mworker_free_child(struct mworker_proc *);
void mworker_cleanup_proc();
void mworker_create_master_cli(void);
void mworker_prepare_master(void);
void mworker_run_master(void);
void mworker_apply_master_worker_mode(void);
#endif /* _HAPROXY_MWORKER_H_ */