* suppression du semaphore du DataTab
This commit is contained in:
parent
77a983c922
commit
546b279c79
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
@ -29,6 +31,13 @@ int msgSpaceDelete(msgSpaceId externId){
|
|||
}
|
||||
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");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue