mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Handle select errno EINTR properly (not doing this breaks at least many profilers)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user