Test that shm is always valid in zma so that zma dies if zmc does.
parent
5f7d404a0c
commit
b5ff820c61
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue