Skip navigation.
Home
The QNX Community Portal

View topic - mq_open() is not creating unique descriptors

mq_open() is not creating unique descriptors

Discussion about the general applications that run on QNX6

mq_open() is not creating unique descriptors

Postby qnxforme23 » Fri Feb 14, 2014 7:56 pm

All,

I'm calling mq_open() from separate processes on the same machine. I am givning unique queue names for each queue. However, mq_open() is returning the same queue descriptor number each time mq_open() is called. Any ideas?

Here is the call:
struct mq_attr mq_attributes_;
mq_attributes_.mq_maxmsg = 100;
mq_attributes_.mq_msgsize = 8196;
mq_open( queue_name_, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWGRP, &mq_attributes_)
qnxforme23
New Member
 
Posts: 1
Joined: Fri Feb 14, 2014 7:33 pm

Re: mq_open() is not creating unique descriptors

Postby maschoen » Sat Feb 15, 2014 7:03 am

The descriptor is only unique to the process, so duplicates are not unexpected.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 1 guest