MessageDialog msg (string_compose (_("Your configuration files were copied. You can now restart %1."), PROGRAM_NAME), true);
msg.run ();
/* configuration was modified, exit immediately */
- _exit (0);
+ _exit (EXIT_SUCCESS);
}
halt_connection.disconnect ();
AudioEngine::instance()->stop ();
- exit (0);
+ exit (EXIT_SUCCESS);
}
halt_connection.disconnect ();
AudioEngine::instance()->stop ();
- exit (0);
+ exit (EXIT_SUCCESS);
}
/* this being a GUI and all, we want peakfiles */
c.signal_toggled().connect (sigc::hide_return (sigc::bind (sigc::ptr_fun (toggle_file_existence), path)));
if (d.run () != RESPONSE_OK) {
- _exit (0);
+ _exit (EXIT_SUCCESS);
}
}
#endif
recent_session_dialog.hide();
return;
} else {
- exit (1);
+ exit (EXIT_FAILURE);
}
}
ARDOUR_COMMAND_LINE::session_name = "";
if (get_session_parameters (true, false)) {
- exit (1);
+ exit (EXIT_FAILURE);
}
}
}
if (ret == -2) {
/* not connected to the AudioEngine, so quit to avoid an infinite loop */
- exit (1);
+ exit (EXIT_FAILURE);
}
if (!ARDOUR_COMMAND_LINE::immediate_save.empty()) {
_session->save_state (ARDOUR_COMMAND_LINE::immediate_save, false);
- exit (1);
+ exit (EXIT_FAILURE);
}
/* clear this to avoid endless attempts to load the
ARDOUR_COMMAND_LINE::session_name = "";
if (get_session_parameters (true, false)) {
- exit (1);
+ exit (EXIT_FAILURE);
}
}
switch (response) {
case RESPONSE_CANCEL:
- exit (1);
+ exit (EXIT_FAILURE);
default:
break;
}
case Gtk::RESPONSE_NO:
/* save and quit */
save_state_canfail ("");
- exit (0);
+ exit (EXIT_SUCCESS);
break;
case Gtk::RESPONSE_CANCEL: