From 8f7c190135e367e4988a6f441b710dff961e5a44 Mon Sep 17 00:00:00 2001 From: Aaron Clarke Date: Mon, 9 Aug 2021 14:39:25 -0700 Subject: [PATCH] added log statement to timerfd_settime failure --- fml/platform/linux/timerfd.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fml/platform/linux/timerfd.cc b/fml/platform/linux/timerfd.cc index 0dbcb89ad3d25..166b861909663 100644 --- a/fml/platform/linux/timerfd.cc +++ b/fml/platform/linux/timerfd.cc @@ -8,6 +8,7 @@ #include #include "flutter/fml/eintr_wrapper.h" +#include "flutter/fml/logging.h" #if FML_TIMERFD_AVAILABLE == 0 @@ -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; }