mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 03:27:32 +00:00
Fix exit code values
- Change all exit codes to match the standard of 0 for success and 1 for error - Add empty shared folder to utils/defaults for shared_memory
This commit is contained in:
1 parent
76e25f75fa
commit
2a39449f6e
7 files changed
+60
-49
No files matched your search
@@ -69,7 +69,7 @@ int main() {
|
||||
|
||||
_log(QUERYSERV__INIT, "Loading server configuration failed.");
|
||||
|
||||
return(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Config = queryservconfig::get();
|
||||
@@ -90,16 +90,16 @@ int main() {
|
||||
Config->QSDatabaseDB.c_str(),
|
||||
Config->QSDatabasePort)) {
|
||||
_log(WORLD__INIT_ERR, "Cannot continue without a database connection.");
|
||||
return(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (signal(SIGINT, CatchSignal) == SIG_ERR) {
|
||||
_log(QUERYSERV__ERROR, "Could not set signal handler");
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
if (signal(SIGTERM, CatchSignal) == SIG_ERR) {
|
||||
_log(QUERYSERV__ERROR, "Could not set signal handler");
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
worldserver = new WorldServer;
|
||||
|
||||
Reference in new issue
Block a user