mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
added log statement to timerfd_settime failure (flutter/engine#27974)
This commit is contained in:
parent
f34945f60c
commit
fdc01be73e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user