*/
void __noreturn clean_exit(int status, const char *msg)
{
- int i;
-
if (socket_name)
unlink(socket_name);
close_stat_pipe();
- FOR_EACH_SLOT(i)
- close_slot(i);
+ close_unused_slots();
audiod_cmdline_parser_free(&conf);
close_stat_clients();
PARA_EMERG_LOG("%s\n", msg);
exit(EXIT_FAILURE);
}
log_welcome("para_audiod");
- set_server_start_time(NULL);
+ set_server_start_time();
set_initial_status();
FOR_EACH_SLOT(i)
clear_slot(i);