mq_open fails with errno EEXIST(17)
807575Mar 14 2007 — edited Mar 14 2007Hi All,
I have code like below:
const int MQ_OPEN_FLAGS = O_RDWR;
mQueueId = ::mq_open (pName,
MQ_OPEN_FLAGS);
In this case, mq_open is returning errno 17.
I cant understnd the reason of this error as we are tryng to open an exisiting mq. In what situation errno 17 can be returned if called this way(to open existing MQ)?
Thanks in advance