#endif
if (home_dir.empty ()) {
error << "Unable to determine home directory" << endmsg;
- exit (1);
+ exit (EXIT_FAILURE);
}
p = home_dir;
if (g_mkdir_with_parents (p.c_str(), 0755)) {
error << string_compose (_("Cannot create Configuration directory %1 - cannot run"),
p) << endmsg;
- exit (1);
+ exit (EXIT_FAILURE);
}
} else if (!Glib::file_test (p, Glib::FILE_TEST_IS_DIR)) {
fatal << string_compose (_("Configuration directory %1 already exists and is not a directory/folder - cannot run"),
#endif
if (home_dir.empty ()) {
error << "Unable to determine home directory" << endmsg;
- exit (1);
+ exit (EXIT_FAILURE);
}
p = home_dir;
if (g_mkdir_with_parents (p.c_str(), 0755)) {
error << string_compose (_("Cannot create cache directory %1 - cannot run"),
p) << endmsg;
- exit (1);
+ exit (EXIT_FAILURE);
}
} else if (!Glib::file_test (p, Glib::FILE_TEST_IS_DIR)) {
fatal << string_compose (_("Cache directory %1 already exists and is not a directory/folder - cannot run"),
std::string s = Glib::getenv("ARDOUR_DLL_PATH");
if (s.empty()) {
std::cerr << _("ARDOUR_DLL_PATH not set in environment - exiting\n");
- ::exit (1);
+ ::exit (EXIT_FAILURE);
}
return s;
#endif
default:
/* no choice but to use text/console output here */
cerr << "programmer error in UI::check_error_messages (channel = " << chn << ")\n";
- ::exit (1);
+ ::exit (EXIT_FAILURE);
}
errors->text().get_buffer()->begin_user_action();
sigemptyset (&mask);
sigsuspend (&mask);
/*NOTREACHED*/
- exit (1);
+ exit (EXIT_FAILURE);
/* JE - From what I can tell, the above code suspends
* program execution until (any) signal occurs. Not
* sure at the moment what this achieves, unless it