1) Reloaded zm_event.cpp to hopefully fix its issues once and for all.
2) Added backup code in case sendfile() fails. 3) Fixed a bug that allowed to link a monitor to itself, which can cause alarm lasting forever once triggered.
This commit is contained in:
parent
bc255d1b06
commit
442b9e5ba2
2903
src/zm_event.cpp
2903
src/zm_event.cpp
File diff suppressed because it is too large
Load Diff
|
@ -1707,7 +1707,7 @@ void Monitor::ReloadLinkedMonitors( const char *p_linked_monitors )
|
||||||
{
|
{
|
||||||
*dest_ptr = '\0';
|
*dest_ptr = '\0';
|
||||||
int link_id = atoi(link_id_str);
|
int link_id = atoi(link_id_str);
|
||||||
if ( link_id > 0 )
|
if ( link_id > 0 && link_id != id)
|
||||||
{
|
{
|
||||||
Debug( 3, "Found linked monitor id %d", link_id );
|
Debug( 3, "Found linked monitor id %d", link_id );
|
||||||
int j;
|
int j;
|
||||||
|
|
Loading…
Reference in New Issue