added log statement to timerfd_settime failure (flutter/engine#27974)

This commit is contained in:
gaaclarke 2021-08-16 14:43:34 -07:00 committed by GitHub
parent f34945f60c
commit fdc01be73e

View File

@ -8,6 +8,7 @@
#include <unistd.h>
#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;
}