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:
parent
0d1c5ddf1d
commit
53b248d95a
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue