Only close server when errno is not EINTR

This commit is contained in:
Rowan Dempster
2024-05-30 16:39:16 -04:00
committed by Beat Küng
parent 68769ea0ec
commit bc51eb37eb
@@ -153,9 +153,8 @@ Server::_server_main()
// Reboot command causes System Interrupt to stop poll(). This is not an error // Reboot command causes System Interrupt to stop poll(). This is not an error
if (errno != EINTR) { if (errno != EINTR) {
PX4_ERR("poll() failed: %s", strerror(errno)); PX4_ERR("poll() failed: %s", strerror(errno));
break;
} }
break;
} }
_lock(); _lock();