Chromium Code Reviews| Index: runtime/bin/eventhandler_linux.cc |
| diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc |
| index a7a1049203df9580db8619755e7eab9fc6148681..218c1bda6bcec79815cb02f9430e1669b8d03fb9 100644 |
| --- a/runtime/bin/eventhandler_linux.cc |
| +++ b/runtime/bin/eventhandler_linux.cc |
| @@ -68,8 +68,8 @@ EventHandlerImplementation::EventHandlerImplementation() : shutdown_(false) { |
| } |
| FDUtils::SetCloseOnExec(epoll_fd_); |
| timer_fd_ = TEMP_FAILURE_RETRY(timerfd_create(CLOCK_REALTIME, TFD_CLOEXEC)); |
| - if (epoll_fd_ == -1) { |
| - FATAL("Failed creating timerfd file descriptor"); |
| + if (timer_fd_ == -1) { |
| + FATAL1("Failed creating timerfd file descriptor: %i\n", errno); |
|
kasperl
2014/02/24 12:04:15
Is the \n necessary? You don't pass it to the FATA
Anders Johnsen
2014/02/24 12:10:42
You're right. Fixed.
|
| } |
| // Register the timer_fd_ with the epoll instance. |
| struct epoll_event event; |