1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 17:56:38 +02:00

Use normal exit codes when exiting the process.

This commit is contained in:
Sadie Powell
2024-01-05 11:55:20 +00:00
parent a40f8e0b9d
commit 4573e1925d
4 changed files with 16 additions and 12 deletions
+3 -2
View File
@@ -137,12 +137,13 @@ int main(int ac, char **av, char **envp)
try
{
/* General initialization first */
Anope::Init(ac, av);
if (!Anope::Init(ac, av))
return Anope::ReturnValue;
}
catch (const CoreException &ex)
{
Log() << ex.GetReason();
return -1;
return EXIT_FAILURE;
}
try