Renamed terminate to zm_terminate.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@378 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-02-07 14:39:27 +00:00
parent f4667a870c
commit 02f7a5c5ad
1 changed files with 3 additions and 3 deletions

View File

@ -20,12 +20,12 @@
#include <getopt.h> #include <getopt.h>
#include "zm.h" #include "zm.h"
bool terminate = false; bool zm_terminate = false;
void term_handler( int signal ) void term_handler( int signal )
{ {
Info(( "Got TERM signal, exiting" )); Info(( "Got TERM signal, exiting" ));
terminate = true; zm_terminate = true;
} }
void Usage() void Usage()
@ -140,7 +140,7 @@ int main( int argc, char *argv[] )
monitors[i]->PostCapture(); monitors[i]->PostCapture();
} }
sigprocmask( SIG_UNBLOCK, &block_set, 0 ); sigprocmask( SIG_UNBLOCK, &block_set, 0 );
if ( terminate ) if ( zm_terminate )
{ {
for ( int i = 0; i < n_monitors; i++ ) for ( int i = 0; i < n_monitors; i++ )
{ {