From 546b279c793b3fb9e38cddb03031d0254739282d Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 13:07:36 +0000 Subject: [PATCH] * suppression du semaphore du DataTab --- src/nzg_spaceDelete.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nzg_spaceDelete.c b/src/nzg_spaceDelete.c index 117ac67..f7e9247 100644 --- a/src/nzg_spaceDelete.c +++ b/src/nzg_spaceDelete.c @@ -4,6 +4,8 @@ /* prototypes des fonctions annexes à ne pas exporter */ int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgPoolDataIdIntern(msgSpaceId dest,const msgSpaceId src ); +int msgPoolDataTabSemIdIntern( + msgPoolSemId destSemId,const msgSpaceId externId); int msgSpaceDelete(msgSpaceId externId){ fprintf(stderr,"Deleting msgSpace with id : %s\n",externId); @@ -28,6 +30,13 @@ int msgSpaceDelete(msgSpaceId externId){ return -1; } printf("ok\n"); + + printf("Unlinking DataTabSem... "); + if (sem_unlink(space->poolDataTabSemId) < 0){ + NZG_ERROR("sem_unlink",space->poolDataTabSemId); + return -1; + } + printf("ok\n"); if (shm_unlink(nzgId)<0){ perror("shm_unlink");