* suppression du semaphore du DataTab

This commit is contained in:
glenux 2004-02-23 13:07:36 +00:00
parent 3909693db4
commit c5278d5d59

View file

@ -4,6 +4,8 @@
/* prototypes des fonctions annexes à ne pas exporter */ /* prototypes des fonctions annexes à ne pas exporter */
int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgSpaceIdIntern(msgSpaceId dest,const msgSpaceId src );
int msgPoolDataIdIntern(msgSpaceId dest,const msgSpaceId src ); int msgPoolDataIdIntern(msgSpaceId dest,const msgSpaceId src );
int msgPoolDataTabSemIdIntern(
msgPoolSemId destSemId,const msgSpaceId externId);
int msgSpaceDelete(msgSpaceId externId){ int msgSpaceDelete(msgSpaceId externId){
fprintf(stderr,"Deleting msgSpace with id : %s\n",externId); fprintf(stderr,"Deleting msgSpace with id : %s\n",externId);
@ -28,6 +30,13 @@ int msgSpaceDelete(msgSpaceId externId){
return -1; return -1;
} }
printf("ok\n"); 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){ if (shm_unlink(nzgId)<0){
perror("shm_unlink"); perror("shm_unlink");