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

Unified Diff: net/base/telnet_server.cc

Issue 100225: POSIX: Add a macro for handling EINTR. (Closed)
Patch Set: ... Created 11 years, 8 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 | « net/base/tcp_client_socket_libevent.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/telnet_server.cc
diff --git a/net/base/telnet_server.cc b/net/base/telnet_server.cc
index 8cd2451916f32aac1b20445f7cf645ccb1da7301..72fa50ba986bb0498b68e4b0b668620389022807 100644
--- a/net/base/telnet_server.cc
+++ b/net/base/telnet_server.cc
@@ -17,6 +17,7 @@
#include "base/message_pump_libevent.h"
#endif
+#include "base/eintr_wrappers.h"
#include "net/base/telnet_server.h"
#if defined(OS_POSIX)
@@ -250,7 +251,7 @@ void TelnetServer::Read() {
char buf[kReadBufSize + 1];
int len;
do {
- len = recv(socket_, buf, kReadBufSize, 0);
+ len = HANDLE_EINTR(recv(socket_, buf, kReadBufSize, 0));
#if defined(OS_WIN)
if (len == SOCKET_ERROR) {
« no previous file with comments | « net/base/tcp_client_socket_libevent.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698