diff --git a/src/nzg_free.c b/src/nzg_free.c index 7ef5e35..e58eb2b 100644 --- a/src/nzg_free.c +++ b/src/nzg_free.c @@ -48,7 +48,7 @@ sem_t * poolDataTabSemFd; // TODO: verouiller semaphore DataInfo int err; - printf("FREE-SEMWAIT\n"); + poolIndex=-1; bufferIndex=-1; err=msgBufferGetProcAttach( poolDataTabAddr, space->poolNb, @@ -57,7 +57,10 @@ sem_t * poolDataTabSemFd; addr ); - msgBufferDetachProc(poolDataTabAddr,poolIndex,bufferIndex,addr); + printf("Found : %d\n",err); + printf("Freing pool: %d, buffer: %d\n",poolIndex,bufferIndex); + //msgBufferDetachProc(poolDataTabAddr,poolIndex,bufferIndex,addr); + printf("FREE-SEMWAIT\n"); /* unmapper le msgPoolDataTab */ munmap(poolDataTabAddr,(space->poolNb) * sizeof( msgPoolData ));