HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Errno of Non-blocking connect()
Operating System - HP-UX
1834305
Members
2647
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
08-08-2002 04:07 PM
08-08-2002 04:07 PM
Errno of Non-blocking connect()
Non-blocking connect() is valid when return value is 0 or return valud is -1 and errno is EINPROGRESS.
I made a program which connect to web server. When it run WITHOUT thread, non-blocking connect()'s errno
is EINPROGRESS. But WITH threads, errno is ECHILD or ENOENT.
All threads of a process is shared a errno. So,
I tried to lock connect() function. But the result is same. The program is running well in Linux.
Thank you in advance,
Sunghee Kim
I made a program which connect to web server. When it run WITHOUT thread, non-blocking connect()'s errno
is EINPROGRESS. But WITH threads, errno is ECHILD or ENOENT.
All threads of a process is shared a errno. So,
I tried to lock connect() function. But the result is same. The program is running well in Linux.
Thank you in advance,
Sunghee Kim
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2002 07:32 AM
08-09-2002 07:32 AM
Re: Errno of Non-blocking connect()
Threads should not be sharing an errno. The errno value is context switched with 10.20 libcma threads. The errno value is accessed through a function macro and thread specific data with 11.x and libpthread. Perhaps your program is missing the necessary header files or compilation options. See "man pthread" or the documents under this URL for details of how to build threaded programs.
http://h21007.www2.hp.com/dspp/topic/topic_PETechnologyDetailPage_IDX/1,2603,10318,00.html
http://h21007.www2.hp.com/dspp/topic/topic_PETechnologyDetailPage_IDX/1,2603,10318,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 03:01 AM
10-23-2002 03:01 AM
Re: Errno of Non-blocking connect()
I had simmilar problem. Non-blocking connect returned -1 and errno was not EINPROGRESS. When I ignored it I've discovered that after some time correct connection was establised anyway.
Best regards
Adam
Best regards
Adam
I do everything perfectly, except from my mistakes
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