mq_close(3) - Linux man page
Name
mq_close - close a message queue descriptorSynopsis
#include <mqueue.h> int mq_close(mqd_t mqdes);Link with -lrt.
Description
If the calling process has attached a notification request to this message queue via mqdes, then this request is removed, and another process can now attach a notification request.
Return Value
On success mq_close() returns 0; on error, -1 is returned, with errno set to indicate the error.Errors
- EBADF
- The descriptor specified in mqdes is invalid.