Skip to content

Commit 90c9a91

Browse files
authored
added log statement to timerfd_settime failure (flutter#27974)
1 parent fd86861 commit 90c9a91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fml/platform/linux/timerfd.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <unistd.h>
99

1010
#include "flutter/fml/eintr_wrapper.h"
11+
#include "flutter/fml/logging.h"
1112

1213
#if FML_TIMERFD_AVAILABLE == 0
1314

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

5051
int result = ::timerfd_settime(fd, TFD_TIMER_ABSTIME, &spec, nullptr);
52+
if (result != 0) {
53+
FML_DLOG(ERROR) << "timerfd_settime err:" << strerror(errno);
54+
}
5155
return result == 0;
5256
}
5357

0 commit comments

Comments
 (0)