Added some debug about the shared memory size.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@462 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
6d9eafc4eb
commit
1318127ba6
|
@ -43,6 +43,7 @@ Monitor::Monitor( int p_id, char *p_name, int p_function, int p_device, int p_ch
|
||||||
state = IDLE;
|
state = IDLE;
|
||||||
|
|
||||||
int shared_images_size = sizeof(SharedImages)+(image_buffer_count*sizeof(time_t))+(image_buffer_count*camera->ImageSize());
|
int shared_images_size = sizeof(SharedImages)+(image_buffer_count*sizeof(time_t))+(image_buffer_count*camera->ImageSize());
|
||||||
|
Info(( "shm.size=%d", shared_images_size ));
|
||||||
shmid = shmget( ZM_SHM_KEY|id, shared_images_size, IPC_CREAT|0777 );
|
shmid = shmget( ZM_SHM_KEY|id, shared_images_size, IPC_CREAT|0777 );
|
||||||
if ( shmid < 0 )
|
if ( shmid < 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue