mq_open fails with errno EEXIST(17)
Hi 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
[391 byte] By [
kushala] at [2007-11-26 21:35:46]

# 1
errno 17 means "file exists:"
Evidently the options you are passing to mq_open specify not to open an existing file.
Try
man mq_open
for more details.
In any event, this is not a C++ question, but a Solaris question. You can ask Solaris questions here:
http://forum.java.sun.com/index.jspa?tab=solaris
or in a community forum at
http://www.opensolaris.org