Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle error on poll call

Status
Not open for further replies.

girijak

Programmer
Apr 8, 2001
2
IN
I am doing socket programming where in I have used poll() call. I am observing an "error on poll call". Can you please let me what are the error encountered when we use poll call. And how to handle them .
 
How are you "observing" the error? Is it showing up at compile time or run time? Are you checking the return value of poll() as well as the value of errno after the function returns?

See the manual page for poll(): man poll. This will give you information on the poll implementation on your system, including the possible values stored in errno if the function fails.

If you are still stuck, post again with more detailed information -- Your environment (OS and compiler), The return value of poll(), the value of errno after poll() returns, and a short code snippet that shows how you're calling poll(). If you're getting compiler errors, copy and paste the compiler's output.

Russ
bobbitts@hotmail.com
 
The operating system is VENIX and the compiler is C.
I am continuously polling to receive data from another system. Once in while I encounter POLLERR (as per the man pages). Can you please let me know at what instant this error occurs and the solution for the same. It is an run-time error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top