mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04: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
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue