mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
Add logging to poll EINTR handling, add another catch in camerad/main.cc
old-commit-hash: 439b4625b68fb7f933c646229da8667e9cf4fea8
This commit is contained in:
+4
-1
@@ -598,7 +598,10 @@ static void ui_update(UIState *s) {
|
||||
int ret = zmq_poll(polls, 1, 1000);
|
||||
#endif
|
||||
if (ret < 0) {
|
||||
if (errno == EINTR) continue;
|
||||
if (errno == EINTR){
|
||||
LOGW("poll EINTR");
|
||||
continue;
|
||||
}
|
||||
|
||||
LOGW("poll failed (%d)", ret);
|
||||
close(s->ipc_fd);
|
||||
|
||||
Reference in New Issue
Block a user