Skip to content

Commit

Permalink
Merge pull request #50 from commaai/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
cfranyota authored Mar 18, 2020
2 parents fa83d80 + a5c3340 commit ce95679
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion selfdrive/camerad/cameras/camera_qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ void cameras_run(DualCameraState *s) {

int ret = poll(fds, ARRAYSIZE(fds), 1000);
if (ret <= 0) {
if (errno == EINTR) continue;
if (errno == EINTR || errno == EAGAIN) continue;
LOGE("poll failed (%d - %d)", ret, errno);
break;
}
Expand Down
7 changes: 2 additions & 5 deletions selfdrive/camerad/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,7 @@ void* visionserver_client_thread(void* arg) {
}
int ret = zmq_poll(polls, num_polls, -1);
if (ret < 0) {
if (errno == EINTR){
LOGW("poll EINTR");
continue;
}
if (errno == EINTR || errno == EAGAIN) continue;
LOGE("poll failed (%d - %d)", ret, errno);
break;
}
Expand Down Expand Up @@ -799,7 +796,7 @@ void* visionserver_thread(void* arg) {

int ret = zmq_poll(polls, ARRAYSIZE(polls), -1);
if (ret < 0) {
if (errno == EINTR) continue;
if (errno == EINTR || errno == EAGAIN) continue;
LOGE("poll failed (%d - %d)", ret, errno);
break;
}
Expand Down
4 changes: 2 additions & 2 deletions selfdrive/logcatd/logcatd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ int main() {
assert(system_logger);
struct logger *crash_logger = android_logger_open(logger_list, LOG_ID_CRASH);
assert(crash_logger);
// struct logger *kernel_logger = android_logger_open(logger_list, LOG_ID_KERNEL);
// assert(kernel_logger);
struct logger *kernel_logger = android_logger_open(logger_list, (log_id_t)5); // LOG_ID_KERNEL
assert(kernel_logger);

Context * c = Context::create();
PubSocket * androidLog = PubSocket::create(c, "androidLog");
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ static void ui_update(UIState *s) {
int ret = zmq_poll(polls, 1, 1000);
#endif
if (ret < 0) {
if (errno == EINTR) continue;
if (errno == EINTR || errno == EAGAIN) continue;

LOGE("poll failed (%d - %d)", ret, errno);
close(s->ipc_fd);
Expand Down

0 comments on commit ce95679

Please sign in to comment.