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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.