Allows cmdutils to call each tool's own cleanup function.
Showing the changes to avserver.c (1 of 7 files). Show all
Unified · Split
| @@ -320,6 +320,11 @@ static AVLFG random_state; · 319 unmodified lines | ||
| 320 | 320 | |
| 321 | 321 | static FILE *logfile = NULL; |
| 322 | 322 | |
| 323 | +void exit_program(int ret) | |
| 324 | +{ | |
| 325 | + exit(ret); | |
| 326 | +} | |
| 327 | + | |
| 323 | 328 | /* FIXME: make avserver work with IPv6 */ |
| 324 | 329 | /* resolve host with also IP address parsing */ |
| 325 | 330 | static int resolve_host(struct in_addr *sin_addr, const char *hostname) |