From b35fd587fd72dad211251bf3af606fab27699342 Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 16:32:20 +0000 Subject: [PATCH] *** empty log message *** --- src/nzg_free.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ));