mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-24 08:01:18 +02:00
Only mworker uses proc_self, and it was declared in global.h, forcing users of global.h to include mworker and its dependencies. Moving it to mworker reduces the preprocessed size of version.c from 170 to 125kB by shrinking the number of local includes from 30 to 16 and the number of system includes from 147 to 132.
47 lines
1.1 KiB
C
47 lines
1.1 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/mworker-t.h>
|
|
#include <haproxy/signal-t.h>
|
|
|
|
extern struct mworker_proc *proc_self;
|
|
|
|
void mworker_proc_list_to_env();
|
|
void mworker_env_to_proc_list();
|
|
|
|
|
|
void mworker_block_signals();
|
|
void mworker_unblock_signals();
|
|
|
|
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();
|
|
|
|
int mworker_child_nb();
|
|
|
|
int mworker_ext_launch_all();
|
|
|
|
void mworker_kill_max_reloads(int sig);
|
|
|
|
void mworker_free_child(struct mworker_proc *);
|
|
|
|
#endif /* _HAPROXY_MWORKER_H_ */
|