Handle select errno EINTR properly (not doing this breaks at least many profilers)

master
Perttu Ahola 2012-03-08 10:03:29 +02:00
parent 11716825fc
commit d834d6e074
1 changed files with 3 additions and 0 deletions

View File

@ -331,6 +331,9 @@ bool UDPSocket::WaitData(int timeout_ms)
<<timeout_ms<<")"<<std::endl;*/
return false;
}
else if(result < 0 && errno == EINTR){
return false;
}
else if(result < 0){
// Error
#ifndef DISABLE_ERRNO