Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Unified Diff: runtime/bin/eventhandler_linux.cc

Issue 9360040: Handle stdio redirection in standalone VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert test change Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_linux.cc
diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
index a589e78e15d0872d9b45d19562df50a2ba3aac1c..5ee2f84d69f020933430ee334064bd7797c02c21 100644
--- a/runtime/bin/eventhandler_linux.cc
+++ b/runtime/bin/eventhandler_linux.cc
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/epoll.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
@@ -87,7 +88,7 @@ static void UpdateEpollInstance(intptr_t epoll_fd_, SocketData* sd) {
sd->set_tracked_by_epoll(true);
}
if (status == -1) {
- FATAL("Failed updating epoll instance");
+ FATAL1("Failed updating epoll instance: %s", strerror(errno));
}
}
}
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698