From 70eb657d0e9575764e6d744a2fd36f7f7249c799 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 23 Jun 2010 00:37:46 +0000 Subject: Clang: Do not ignore result of HANDLE_EINTR. Review URL: http://codereview.chromium.org/2805026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50556 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/tcp_client_socket_libevent.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc index 102a8fb..802dcc9 100644 --- a/net/socket/tcp_client_socket_libevent.cc +++ b/net/socket/tcp_client_socket_libevent.cc @@ -256,7 +256,8 @@ void TCPClientSocketLibevent::DoDisconnect() { DCHECK(ok); ok = write_socket_watcher_.StopWatchingFileDescriptor(); DCHECK(ok); - HANDLE_EINTR(close(socket_)); + if (HANDLE_EINTR(close(socket_)) < 0) + PLOG(ERROR) << "close"; socket_ = kInvalidSocket; } -- cgit v1.1