2004-02-23 20:31:00 +00:00
|
|
|
#include "libnazgul.h"
|
|
|
|
#include "ids.h"
|
|
|
|
|
2020-03-04 00:06:43 +01:00
|
|
|
int msgQueueClose(msgQueue * queue)
|
|
|
|
{
|
|
|
|
msgQueueId qId;
|
|
|
|
strcpy(qId, queue->id);
|
2004-02-23 20:31:00 +00:00
|
|
|
|
2020-03-04 00:06:43 +01:00
|
|
|
if (munmap(queue, sizeof(msgQueue)) < 0) {
|
|
|
|
NZG_ERROR("unmap", qId);
|
|
|
|
goto ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
ERROR:
|
|
|
|
return -1;
|
2004-02-23 20:31:00 +00:00
|
|
|
}
|