- return 1;
- }
- /*! Called when exiting is certain. */
- static void really_quit(int num, shutdown_nice_t niceness, int restart)
- {
- int active_channels;
- struct ast_json *json_object = NULL;
- int run_cleanups = niceness >= SHUTDOWN_NICE;
- if (run_cleanups && modules_shutdown()) {
- ast_verb(0, "Some modules could not be unloaded, switching to fast shutdown\n");
- run_cleanups = 0;
- }
- if (!restart) {
- ast_sd_notify("STOPPING=1");
- }
- if (ast_opt_console || (ast_opt_remote && !ast_opt_exec)) {
- ast_el_write_default_histfile();
- if (consolethread == AST_PTHREADT_NULL || consolethread == pthread_self()) {