- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with Poll on HPUX version 11.23 onward...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
06-07-2019 05:41 AM
06-07-2019 05:41 AM
Problem with Poll on HPUX version 11.23 onwards
Hi There,
I am facing a problem with Poll on HPUX platform.
Poll is being called for read file descriptor. The revents are watched for POLLIN as mentioned in below code.
if( !( revents & POLLIN))
{
clear_the_mask_value(readfds, fd);
}
On HPUX, we are getting revents set to POLLERR for read file descriptor. on other UNIX platforms we are getting revents set to POLLIN. Is this expected? is something changed in HPUX Poll call ? Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 02:52 AM - edited 06-10-2019 02:53 AM
06-10-2019 02:52 AM - edited 06-10-2019 02:53 AM
Re: Problem with Poll on HPUX version 11.23 onwards
pollerr indicates an error has occurred on the file descriptor.
>> is something changed in HPUX Poll call ? Please suggest.
You can find details on HP-UX Polling mechanism in the documet "STREAMS/UX Programmer’s Guide HP-UX 11i v3".
The per above document, some of the important aspects of poll(2) functionality are as below :
• The poll (2) system call returns to the calling application when one of the following two conditions is met.
It encounters at least one read-queue with at least one of the requested events (or a POLLERR, POLLHUP, or
POLLNVAL), or the wait period reaches the specified timeout value in milliseconds.
• A timeout value of -1 implies no timeout, that is, poll (2) will wait until at least one requested event (or a
POLLERR, POLLHUP or POLLNVAL) occurs on one of the read queues.
• For a timeout value of 0, poll (2) checks to see if any of the requested events occurred on any one of the
read-queues, and returns immediately, regardless of the results.
If you have any specific requirement/query on POLL functionality, please open a case wth HPE Support Center.
I work for HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 06:11 AM
06-20-2019 06:11 AM
Re: Problem with Poll on HPUX version 11.23 onwards
Thank you for the detailed information.
So it is confirmed that in case of read-queue atleast one of the events (a POLLERR, POLLHUP, or
POLLNVAL) would occur and we need to handle it.
Is this specific to HPUX? i donot see the same behavior in other unix flavor. Any reason behind it ?