Removed direct shm connection and replaced with test call.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1724 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-12-22 16:58:07 +00:00
parent 0d1c5ddf1d
commit 53b248d95a
1 changed files with 1 additions and 8 deletions

View File

@ -130,14 +130,7 @@ if ( !$monitor->{CanMoveMap} )
}
Debug( "Found monitor for id '$monitor'\n" );
my $size = 512; # We only need the first 512 bytes really for the alarm state and forced alarm
$monitor->{ShmKey} = hex(ZM_SHM_KEY)|$monitor->{Id};
$monitor->{ShmId} = shmget( $monitor->{ShmKey}, $size, 0 );
if ( !defined($monitor->{ShmId}) )
{
printf( "Can't get shared memory id '%x': $!\n", $monitor->{ShmKey}, $! );
exit( -1 );
}
exit( -1 ) if ( !zmShmGet( $monitor ) );
sub Suspend
{