Why do I keep getting EINTR from the socket calls?



Why do I keep getting EINTR from the socket calls?..

Answer / chaitanya

This isn't really so much an error as an exit condition. It means that the call was interrupted by a signal. Any call that might block should be wrapped in a loop that checkes for EINTR, as is done in the example code .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

Why do not my sockets close?

1 Answers  


What is a sae socket?

0 Answers  


How does a socket work?

0 Answers  


How can I set the timeout for the connect() system call?

0 Answers  


What is Mac, and how is it different from PC? Which one is better for professional users, and why

1 Answers   Evolving Systems, IBM,






What's the difference between a socket and a port?

0 Answers  


What is the difference between connected and unconnected sockets?

1 Answers  


How would I put my socket in non-blocking mode?

1 Answers  


When will my application receive SIGPIPE?

1 Answers  


What is socket programming in java?

0 Answers  


Why sockets are used?

0 Answers  


How can I bind() to a port number < 1024?

1 Answers  


Categories