mirror of
https://github.com/Theldus/alertik.git
synced 2024-11-24 08:53:18 +01:00
Bug Fix: Properly initialize static and env events
This commit is contained in:
parent
cf9a9279c2
commit
0ae977a1ca
@ -46,6 +46,7 @@ static void *handle_messages(void *p)
|
||||
int main(void)
|
||||
{
|
||||
pthread_t handler;
|
||||
int ret;
|
||||
int fd;
|
||||
|
||||
log_init();
|
||||
@ -55,7 +56,9 @@ int main(void)
|
||||
log_msg(" (https://github.com/Theldus/alertik)\n");
|
||||
log_msg("-------------------------------------------------\n");
|
||||
|
||||
if (!init_static_events() && !init_environment_events())
|
||||
ret = init_static_events();
|
||||
ret += init_environment_events();
|
||||
if (!ret)
|
||||
panic("No event was configured, please configure at least one\n"
|
||||
"before proceeding!\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user