« Previous | Next » 

Revision dfdc4060


Added by Guido Trotter over 13 years ago

WaitForSocketCondition: rename, handle EINTR

- Rename WaitForSocketCondition to SingleWaitForFdCondition
- Avoid potentially infinite loop, if we continue to get interrupted
- Handle eintr correctly
- Avoid the poller try/finally, as the poller object gets destroyed
- Provide a new WaitForFdCondition
- Using retry, guarantee to continue checking until the timeout
- Needs an extra helper class, as it uses retry in a very custom way
(no sleep happens, because the poller sleeps by itself)

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences