LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2017, 04:13 PM   #1
MotiAvnon
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
Wink 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
 
Old 03-10-2017, 04:30 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
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.
 
Old 03-10-2017, 05:02 AM   #3
MotiAvnon
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you !
I will check yt out
 
Old 03-10-2017, 05:05 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by MotiAvnon View Post
Thank you !
I will check yt out
No problem. Let us know what you come up with, MotiAvnon.

Welcome to LQ by the way!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between ready queue and run queue soumya_r Linux - Kernel 2 01-11-2011 09:19 PM
Any chance to get length of run queue and swap queue? emJ4y Programming 1 11-03-2010 02:13 PM
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
Is it possible for me to write in front of queue in case of message queue? hemanthv414 Linux - Newbie 1 11-17-2008 04:40 PM
Get list of LPD queue names from LPD server? jantman Linux - Hardware 0 02-07-2008 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration