This commit is contained in:
stormrider1982 2004-02-23 11:15:49 +00:00
parent 6158d424cd
commit b959b96346

View file

@ -30,6 +30,7 @@ void * msgAllocate(msgSpace *space,
float minPoolCoef;
int selectedPoolIndex;
int bufferFreeIndex;
int mSPoolFd;
msgPoolData * mSPoolDataTabAddr;
@ -185,7 +186,7 @@ void * msgAllocate(msgSpace *space,
/* mapper le buffer libre dans l'esp addr du proc */
strcpy(resultPoolId,mSPoolDataTabAddr[selectedPoolIndex].poolId);
int mSPoolFd=shm_open(resultPoolId,O_RDWR,MSGSPACE_DEFAULT_MODE);
mSPoolFd=shm_open(resultPoolId,O_RDWR,MSGSPACE_DEFAULT_MODE);
resultAddr = mmap( 0,
mSPoolDataTabAddr[selectedPoolIndex].bufferSize,