TERM signal not not blocked.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@68 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
a3433c3123
commit
5081dd268e
|
@ -75,7 +75,7 @@ void main( int argc, const char *argv[] )
|
||||||
action.sa_flags = 0;
|
action.sa_flags = 0;
|
||||||
sigaction( SIGTERM, &action, &old_action );
|
sigaction( SIGTERM, &action, &old_action );
|
||||||
sigaddset( &block_set, SIGHUP );
|
sigaddset( &block_set, SIGHUP );
|
||||||
sigaddset( &block_set, SIGTERM );
|
//sigaddset( &block_set, SIGTERM );
|
||||||
while( 1 )
|
while( 1 )
|
||||||
{
|
{
|
||||||
// Process the next image
|
// Process the next image
|
||||||
|
|
|
@ -75,7 +75,7 @@ void main( int argc, const char *argv[] )
|
||||||
action.sa_flags = 0;
|
action.sa_flags = 0;
|
||||||
sigaction( SIGTERM, &action, &old_action );
|
sigaction( SIGTERM, &action, &old_action );
|
||||||
sigaddset( &block_set, SIGHUP );
|
sigaddset( &block_set, SIGHUP );
|
||||||
sigaddset( &block_set, SIGTERM );
|
//sigaddset( &block_set, SIGTERM );
|
||||||
if ( n_monitors == 1 )
|
if ( n_monitors == 1 )
|
||||||
{
|
{
|
||||||
monitors[0]->PreCapture();
|
monitors[0]->PreCapture();
|
||||||
|
|
Loading…
Reference in New Issue