summaryrefslogtreecommitdiffstats
path: root/base/message_pump_libevent.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 21:12:15 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 21:12:15 +0000
commit91cb370d30ef13143f8d207a14c3725dbeac0d6e (patch)
treea88316065ae397f0f691c79cfb25dccfe8d21ea2 /base/message_pump_libevent.cc
parentf82fb495a3ccffc3d2a9fbb215a2e1723acee954 (diff)
downloadchromium_src-91cb370d30ef13143f8d207a14c3725dbeac0d6e.zip
chromium_src-91cb370d30ef13143f8d207a14c3725dbeac0d6e.tar.gz
chromium_src-91cb370d30ef13143f8d207a14c3725dbeac0d6e.tar.bz2
Added more logging in debug builds for some failure passes, hopefully this
will let us figure out why we see so mainly unittest failures on the mac but never seem to be able to repro locally. Review URL: http://codereview.chromium.org/18378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_libevent.cc')
-rw-r--r--base/message_pump_libevent.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc
index f31c01b..7e7f8d5 100644
--- a/base/message_pump_libevent.cc
+++ b/base/message_pump_libevent.cc
@@ -5,6 +5,7 @@
#include "base/message_pump_libevent.h"
#include <fcntl.h>
+#include <errno.h>
#include "base/logging.h"
#include "base/scoped_nsautorelease_pool.h"
@@ -81,12 +82,18 @@ MessagePumpLibevent::MessagePumpLibevent()
bool MessagePumpLibevent::Init() {
int fds[2];
- if (pipe(fds))
+ if (pipe(fds)) {
+ DLOG(ERROR) << "pipe() failed, errno: " << errno;
return false;
- if (SetNonBlocking(fds[0]))
+ }
+ if (SetNonBlocking(fds[0])) {
+ DLOG(ERROR) << "SetNonBlocking for pipe fd[0] failed, errno: " << errno;
return false;
- if (SetNonBlocking(fds[1]))
+ }
+ if (SetNonBlocking(fds[1])) {
+ DLOG(ERROR) << "SetNonBlocking for pipe fd[1] failed, errno: " << errno;
return false;
+ }
wakeup_pipe_out_ = fds[0];
wakeup_pipe_in_ = fds[1];