forked from Mirrorlandia_minetest/minetest
Handle select errno EINTR properly (not doing this breaks at least many profilers)
This commit is contained in:
parent
11716825fc
commit
d834d6e074
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user