From 2bdef4cf2cc18ec1ac4ff291276d9265f0b899a7 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 27 Jan 2004 16:58:59 +0000 Subject: [PATCH] Added extra info to shared memory failure messages. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@785 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmwatch.pl.z | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmwatch.pl.z b/scripts/zmwatch.pl.z index c3d4d1cf6..23ffba5f8 100755 --- a/scripts/zmwatch.pl.z +++ b/scripts/zmwatch.pl.z @@ -114,13 +114,13 @@ while( 1 ) $monitor->{ShmId} = shmget( $monitor->{ShmKey}, $shm_size, 0 ); if ( !defined($monitor->{ShmId}) ) { - print( "Can't get shared memory id: $!\n" ); + print( "Can't get shared memory id '$monitor->{ShmKey}/$monitor->{ShmId}': $!\n" ); next; } my $image_time; if ( !shmread( $monitor->{ShmId}, $image_time, 20, 4 ) ) { - print( "Can't read from shared memory: $!\n" ); + print( "Can't read from shared memory '$monitor->{ShmKey}/$monitor->{ShmId}': $!\n" ); next; } $image_time = unpack( "l", $image_time );