PDA

View Full Version : 2.21 - Why do I keep getting EINTR from the socket calls?


Loco
07-24-2002, 10:40 PM
Taken from the original FAQ.

2.21 - Why do I keep getting EINTR from the socket calls?

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 (See 1.8. Sample Source Code).