HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- msgsnd usage
Operating System - HP-UX
1834208
Members
2545
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2004 07:35 PM
07-25-2004 07:35 PM
msgsnd usage
The msgsnd system call takes the msgid , msg buffer, msg size , msg type and msg flag as the parameters. Here specifying the value of msg flag to "0" means it waits for the system resource. What resources does this command expect? Is it the message queue size to be increase. Please tell me the relevant kernel parameter that has to set since my program waits undefinately at this setting.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2004 07:51 PM
07-25-2004 07:51 PM
Re: msgsnd usage
Hi Amith,
This is what man msgsnd says:
"msgflg specifies the action to be taken if a message of the desired
type is not on the queue. These are as follows:
If (msgflg & IPC_NOWAIT) is true, the calling process returns
immediately with a value of -1 and errno set to [ENOMSG].
If (msgflg & IPC_NOWAIT) is false, the calling process suspends
execution until one of the following occurs:
+ A message of the desired type is placed on the queue.
+ msqid is removed from the system. When this occurs, errno
is set to [EIDRM] and a value of -1 is returned.
+ The calling process receives a signal that is to be caught.
In this case, a message is not received and the calling
process resumes execution in the manner prescribed in
signal(5)). "
Hope that addresses your issue.
Regards,
This is what man msgsnd says:
"msgflg specifies the action to be taken if a message of the desired
type is not on the queue. These are as follows:
If (msgflg & IPC_NOWAIT) is true, the calling process returns
immediately with a value of -1 and errno set to [ENOMSG].
If (msgflg & IPC_NOWAIT) is false, the calling process suspends
execution until one of the following occurs:
+ A message of the desired type is placed on the queue.
+ msqid is removed from the system. When this occurs, errno
is set to [EIDRM] and a value of -1 is returned.
+ The calling process receives a signal that is to be caught.
In this case, a message is not received and the calling
process resumes execution in the manner prescribed in
signal(5)). "
Hope that addresses your issue.
Regards,
You need to know a lot to actually know how little you know
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP