mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +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
|
// 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user