LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Possix queue names (https://www.linuxquestions.org/questions/linux-newbie-8/possix-queue-names-4175601343/)

MotiAvnon 03-08-2017 04:13 PM

Possix queue names
 
I am facing a problem while using mq_open
For a queue named "/queue" i get an error
"Not enough memory" while for other name like "/Core_1_queue" it works ok.
Can someone explain what is going on ?
What is the exact convention for queue names ?
Thanks

hydrurga 03-10-2017 04:30 AM

I suspect that this is not a queue name problem.

If you check out the manual (http://man7.org/linux/man-pages/man3/mq_open.3.html) you should have received an EACCES, EINVAL, ENAMETOOLONG or ENOENT error if there was a problem with the name.

That manual page points to http://man7.org/linux/man-pages/man7/mq_overview.7.html which describes that the queue name should be:

Quote:

a null-terminated string of up to NAME_MAX (i.e., 255) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.
However, you are receiving an out-of-memory error (ENOMEM?). You need first to determine which error number is being returned.

Perhaps the problem is something along the lines of this one: http://stackoverflow.com/questions/5...ge-queue-in-po.

MotiAvnon 03-10-2017 05:02 AM

Thank you !
I will check yt out

hydrurga 03-10-2017 05:05 AM

Quote:

Originally Posted by MotiAvnon (Post 5681495)
Thank you !
I will check yt out

No problem. Let us know what you come up with, MotiAvnon.

Welcome to LQ by the way!


All times are GMT -5. The time now is 12:41 PM.