Index: base/message_loop/message_pump_libevent.cc |
diff --git a/base/message_loop/message_pump_libevent.cc b/base/message_loop/message_pump_libevent.cc |
index df08a6b2a8125af77f678558b07a4be4c3306223..fef01da9a657820672e56fd2daa6c3d6b17806c9 100644 |
--- a/base/message_loop/message_pump_libevent.cc |
+++ b/base/message_loop/message_pump_libevent.cc |
@@ -290,8 +290,16 @@ |
bool MessagePumpLibevent::Init() { |
int fds[2]; |
- if (!CreateLocalNonBlockingPipe(fds)) { |
- DPLOG(ERROR) << "pipe creation failed"; |
+ if (pipe(fds)) { |
+ DLOG(ERROR) << "pipe() failed, errno: " << errno; |
+ return false; |
+ } |
+ if (!SetNonBlocking(fds[0])) { |
+ DLOG(ERROR) << "SetNonBlocking for pipe fd[0] failed, errno: " << errno; |
+ return false; |
+ } |
+ if (!SetNonBlocking(fds[1])) { |
+ DLOG(ERROR) << "SetNonBlocking for pipe fd[1] failed, errno: " << errno; |
return false; |
} |
wakeup_pipe_out_ = fds[0]; |