From 53b248d95a418f0654d222144495dbfe9c172c37 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 22 Dec 2005 16:58:07 +0000 Subject: [PATCH] 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 --- scripts/zmtrack.pl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/zmtrack.pl b/scripts/zmtrack.pl index fed037fe7..5ca921b36 100644 --- a/scripts/zmtrack.pl +++ b/scripts/zmtrack.pl @@ -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 {