mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 11:23:06 +08:00
Only close server when errno is not EINTR
This commit is contained in:
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
|
||||
if (errno != EINTR) {
|
||||
PX4_ERR("poll() failed: %s", strerror(errno));
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
_lock();
|
||||
|
||||
Reference in New Issue
Block a user