- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What kind of reasons caused select() call return E...
Operating System - HP-UX
1821986
Members
3486
Online
109638
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-06-2005 11:54 AM
тАО12-06-2005 11:54 AM
What kind of reasons caused select() call return EINTR?
Hello,
In my application, we often got a return value EINTR for select() call so that our application server shuted down. I'd like to know what kind of possible reasons to cause this happened.
In my case, I used select as below on the 11.23.
select(FD_SETSIZE, &buf, NULL, NULL, NULL); Is passing FD_SETSIZE as the first parameter to select() call safer?
Thanks in advance.
-Ying
In my application, we often got a return value EINTR for select() call so that our application server shuted down. I'd like to know what kind of possible reasons to cause this happened.
In my case, I used select as below on the 11.23.
select(FD_SETSIZE, &buf, NULL, NULL, NULL); Is passing FD_SETSIZE as the first parameter to select() call safer?
Thanks in advance.
-Ying
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2005 12:02 PM
тАО12-06-2005 12:02 PM
Re: What kind of reasons caused select() call return EINTR?
That simply means that the process received a non-blocked signal.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 05:48 AM
тАО12-08-2005 05:48 AM
Re: What kind of reasons caused select() call return EINTR?
manpages can be useful things :)
$ man select
...
ERRORS
Under the following conditions, select() fails and sets errno to:
...
[EINTR] The select() function was interrupted before any of the selected events occurred and before the timeout interval expired. If SA_RESTART has been set for the interrupting signal, it is implementation-dependent whether select() restarts or returns with EINTR.
If you want to see _which_ signal was raised, you could try using tusc to trace the process - IIRC it will show the signal. ftp://ftp.cup.hp.com/dist/networking/tools/
$ man select
...
ERRORS
Under the following conditions, select() fails and sets errno to:
...
[EINTR] The select() function was interrupted before any of the selected events occurred and before the timeout interval expired. If SA_RESTART has been set for the interrupting signal, it is implementation-dependent whether select() restarts or returns with EINTR.
If you want to see _which_ signal was raised, you could try using tusc to trace the process - IIRC it will show the signal. ftp://ftp.cup.hp.com/dist/networking/tools/
there is no rest for the wicked yet the virtuous have no pillows
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP