* ecriture de la fonction
This commit is contained in:
parent
dd18ccde5b
commit
908623f2b1
1 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
||||||
|
#include "libnazgul.h"
|
||||||
|
#include "ids.h"
|
||||||
|
|
||||||
|
int queueClose(msgQueue * queue){
|
||||||
|
msgQueueId qId;
|
||||||
|
strcpy(qId,queue->id);
|
||||||
|
|
||||||
|
if (munmap(queue,sizeof(msgQueue)) < 0){
|
||||||
|
NZG_ERROR("unmap",qId);
|
||||||
|
goto ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
ERROR:
|
||||||
|
return -1;
|
||||||
|
}
|
Loading…
Reference in a new issue