Test that shm is always valid in zma so that zma dies if zmc does.

pull/2090/head^2
Isaac Connor 2018-04-23 16:24:44 -04:00
parent 5f7d404a0c
commit b5ff820c61
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ int main( int argc, char *argv[] ) {
monitor->UpdateAdaptiveSkip();
last_analysis_update_time = time( 0 );
while( !zm_terminate ) {
while( (!zm_terminate) && monitor->ShmValid() ) {
// Process the next image
sigprocmask(SIG_BLOCK, &block_set, 0);