Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

added log statement to timerfd_settime failure #27974

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions fml/platform/linux/timerfd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <unistd.h>

#include "flutter/fml/eintr_wrapper.h"
#include "flutter/fml/logging.h"

#if FML_TIMERFD_AVAILABLE == 0

Expand Down Expand Up @@ -48,6 +49,9 @@ bool TimerRearm(int fd, fml::TimePoint time_point) {
spec.it_interval = spec.it_value; // single expiry.

int result = ::timerfd_settime(fd, TFD_TIMER_ABSTIME, &spec, nullptr);
if (result != 0) {
FML_DLOG(ERROR) << "timerfd_settime err:" << strerror(errno);
}
return result == 0;
}

Expand Down