Changed shmget error message.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1085 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-08-11 15:26:44 +00:00
parent 7e926c5ac1
commit 5f7b1d7575
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ void Monitor::Setup()
shmid = shmget( (int)config.Item( ZM_SHM_KEY )|id, shared_data_size, IPC_CREAT|0700 ); shmid = shmget( (int)config.Item( ZM_SHM_KEY )|id, shared_data_size, IPC_CREAT|0700 );
if ( shmid < 0 ) if ( shmid < 0 )
{ {
Error(( "Can't shmget: %s", strerror(errno))); Error(( "Can't shmget, probably not enough shared memory space free: %s", strerror(errno)));
exit( -1 ); exit( -1 );
} }
unsigned char *shm_ptr = (unsigned char *)shmat( shmid, 0, 0 ); unsigned char *shm_ptr = (unsigned char *)shmat( shmid, 0, 0 );