Additional information in shared memory error.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@803 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-02-05 09:56:51 +00:00
parent 42d270aaa0
commit 84c8629d0e
2 changed files with 2 additions and 2 deletions

View File

@ -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 $size = 28; # We only need the first 28 bytes really for the last event count
my $key = hex(ZM_SHM_KEY)|$monitor; my $key = hex(ZM_SHM_KEY)|$monitor;
my $shmid = shmget( $key, $size, 0 ); 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 ) while( 1 )
{ {

View File

@ -451,7 +451,7 @@ sub loadTasks
$monitor->{ShmId} = shmget( $monitor->{ShmKey}, $size, 0 ); $monitor->{ShmId} = shmget( $monitor->{ShmKey}, $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}': $!\n" );
next; next;
} }