Added extra info to shared memory failure messages.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@785 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-01-27 16:58:59 +00:00
parent 0a573857a3
commit 2bdef4cf2c
1 changed files with 2 additions and 2 deletions

View File

@ -114,13 +114,13 @@ while( 1 )
$monitor->{ShmId} = shmget( $monitor->{ShmKey}, $shm_size, 0 ); $monitor->{ShmId} = shmget( $monitor->{ShmKey}, $shm_size, 0 );
if ( !defined($monitor->{ShmId}) ) 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; next;
} }
my $image_time; my $image_time;
if ( !shmread( $monitor->{ShmId}, $image_time, 20, 4 ) ) 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; next;
} }
$image_time = unpack( "l", $image_time ); $image_time = unpack( "l", $image_time );