mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Handle select errno EINTR properly (not doing this breaks at least many profilers)
This commit is contained in:
parent
11716825fc
commit
d834d6e074
1 changed files with 3 additions and 0 deletions
|
@ -331,6 +331,9 @@ bool UDPSocket::WaitData(int timeout_ms)
|
||||||
<<timeout_ms<<")"<<std::endl;*/
|
<<timeout_ms<<")"<<std::endl;*/
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if(result < 0 && errno == EINTR){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
else if(result < 0){
|
else if(result < 0){
|
||||||
// Error
|
// Error
|
||||||
#ifndef DISABLE_ERRNO
|
#ifndef DISABLE_ERRNO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue