From faeb7859618af7cc59da3198fb71cb8677028b4b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 10 Jan 2017 15:08:23 -0500 Subject: [PATCH] zmMemVerify attaches, so we need to zmMemInvalidate even if the shared data is no good --- scripts/zmx10.pl.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/zmx10.pl.in b/scripts/zmx10.pl.in index 58064a89f..fab30c9af 100644 --- a/scripts/zmx10.pl.in +++ b/scripts/zmx10.pl.in @@ -474,7 +474,11 @@ sub loadTasks or Fatal( "Can't execute: ".$sth->errstr() ); while( my $monitor = $sth->fetchrow_hashref() ) { - next if ( !zmMemVerify( $monitor ) ); # Check shared memory ok +# Check shared memory ok + if ( !zmMemVerify( $monitor ) ) { + zmMemInvalidate( $monitor ); + next ; + } $monitor_hash{$monitor->{Id}} = $monitor;