From 84c8629d0e9d90344987fdad2214577efd591275 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 5 Feb 2004 09:56:51 +0000 Subject: [PATCH] Additional information in shared memory error. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@803 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmfilter.pl.z | 2 +- scripts/zmx10.pl.z | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmfilter.pl.z b/scripts/zmfilter.pl.z index 60a9f121b..a08ab1e1e 100755 --- a/scripts/zmfilter.pl.z +++ b/scripts/zmfilter.pl.z @@ -199,7 +199,7 @@ my $last_action = 0; my $size = 28; # We only need the first 28 bytes really for the last event count my $key = hex(ZM_SHM_KEY)|$monitor; my $shmid = shmget( $key, $size, 0 ); -die( "Can't get shared memory id: $!" ) if ( !defined($shmid) ); +die( "Can't get shared memory id '$key': $!\n" ) if ( !defined($shmid) ); while( 1 ) { diff --git a/scripts/zmx10.pl.z b/scripts/zmx10.pl.z index 315193392..71438598b 100755 --- a/scripts/zmx10.pl.z +++ b/scripts/zmx10.pl.z @@ -451,7 +451,7 @@ sub loadTasks $monitor->{ShmId} = shmget( $monitor->{ShmKey}, $size, 0 ); if ( !defined($monitor->{ShmId}) ) { - print( "Can't get shared memory id: $!\n" ); + print( "Can't get shared memory id '$monitor->{ShmKey}': $!\n" ); next; }