mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
MINOR: haproxy: Add void deinit_and_exit(int)
This helper function calls deinit() and then exit() with the given status.
This commit is contained in:
parent
8469bed20b
commit
2654055316
@ -61,6 +61,7 @@ struct proxy;
|
||||
struct server;
|
||||
int main(int argc, char **argv);
|
||||
void deinit(void);
|
||||
void deinit_and_exit(int);
|
||||
void run_poll_loop(void);
|
||||
int tell_old_pids(int sig);
|
||||
int delete_oldpid(int pid);
|
||||
|
||||
@ -2865,6 +2865,11 @@ void deinit(void)
|
||||
deinit_pollers();
|
||||
} /* end deinit() */
|
||||
|
||||
void deinit_and_exit(int status)
|
||||
{
|
||||
deinit();
|
||||
exit(status);
|
||||
}
|
||||
|
||||
/* Runs the polling loop */
|
||||
void run_poll_loop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user