static void teardown(void) { core_worker_teardown(); core_server_teardown(); core_admin_teardown(); admin_process_teardown(); process_teardown(); slab_teardown(); compose_teardown(); parse_teardown(); response_teardown(); request_teardown(); procinfo_teardown(); time_teardown(); timing_wheel_teardown(); tcp_teardown(); sockio_teardown(); event_teardown(); dbuf_teardown(); buf_teardown(); debug_teardown(); log_teardown(); }
void mch_exit(int r) { exiting = TRUE; ui_builtin_stop(); ui_flush(); ml_close_all(TRUE); /* remove all memfiles */ event_teardown(); #ifdef EXITFREE free_all_mem(); #endif exit(r); }
void mch_exit(int r) { exiting = true; ui_builtin_stop(); ui_flush(); ml_close_all(true); /* remove all memfiles */ event_teardown(); stream_set_blocking(input_global_fd(), true); // normalize stream (#2598) #ifdef EXITFREE free_all_mem(); #endif exit(r); }