modules: use exit(EXIT_FAILURE) on failure
This will allow service process monitoring to recognise the difference between a shutdown and an error of a -foreground ircd, because only /DIE (or SIGINT) will exit with return code 0.
This commit is contained in:
parent
762468f85d
commit
c173a8ad44
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ modules_init(void)
|
|||
if(lt_dlinit())
|
||||
{
|
||||
ilog(L_MAIN, "lt_dlinit failed");
|
||||
exit(0);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Add the default paths we look in to the module system --nenolod */
|
||||
|
@ -241,7 +241,7 @@ load_core_modules(bool warn)
|
|||
ilog(L_MAIN,
|
||||
"Error loading core module %s: terminating ircd",
|
||||
core_module_table[i]);
|
||||
exit(0);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue