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:
parent
42d270aaa0
commit
84c8629d0e
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue