2019-04-01 09:29:53 +00:00
|
|
|
/*
|
|
|
|
* Master Worker
|
|
|
|
*
|
|
|
|
* 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 PROTO_MWORKER_H_
|
|
|
|
#define PROTO_MWORKER_H_
|
|
|
|
|
2019-04-01 09:29:56 +00:00
|
|
|
#include <types/signal.h>
|
|
|
|
|
2019-04-01 09:29:53 +00:00
|
|
|
void mworker_proc_list_to_env();
|
|
|
|
void mworker_env_to_proc_list();
|
|
|
|
|
2019-04-01 09:29:54 +00:00
|
|
|
|
|
|
|
void mworker_block_signals();
|
|
|
|
void mworker_unblock_signals();
|
|
|
|
|
2019-12-11 13:24:07 +00:00
|
|
|
void mworker_broadcast_signal(struct sig_handler *sh);
|
2019-04-01 09:29:56 +00:00
|
|
|
void mworker_catch_sighup(struct sig_handler *sh);
|
|
|
|
void mworker_catch_sigterm(struct sig_handler *sh);
|
|
|
|
void mworker_catch_sigchld(struct sig_handler *sh);
|
|
|
|
|
2019-04-01 09:29:55 +00:00
|
|
|
void mworker_accept_wrapper(int fd);
|
|
|
|
|
2019-04-01 09:29:57 +00:00
|
|
|
void mworker_cleanlisteners();
|
|
|
|
|
2019-04-01 09:29:59 +00:00
|
|
|
int mworker_child_nb();
|
|
|
|
|
2019-04-01 09:30:02 +00:00
|
|
|
int mworker_ext_launch_all();
|
|
|
|
|
2019-05-07 15:49:33 +00:00
|
|
|
void mworker_kill_max_reloads(int sig);
|
2019-04-01 09:29:56 +00:00
|
|
|
|
2019-05-16 18:23:22 +00:00
|
|
|
void mworker_free_child(struct mworker_proc *);
|
|
|
|
|
2019-04-01 09:29:53 +00:00
|
|
|
#endif /* PROTO_MWORKER_H_ */
|