diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 00:37:46 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 00:37:46 +0000 |
commit | 70eb657d0e9575764e6d744a2fd36f7f7249c799 (patch) | |
tree | cbe69d505bf6978e1b0a70c9deb13e33c677b659 /net | |
parent | 44a34186a63080c37c70bddc0ecd2c5efc9d7fab (diff) | |
download | chromium_src-70eb657d0e9575764e6d744a2fd36f7f7249c799.zip chromium_src-70eb657d0e9575764e6d744a2fd36f7f7249c799.tar.gz chromium_src-70eb657d0e9575764e6d744a2fd36f7f7249c799.tar.bz2 |
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
Diffstat (limited to 'net')
-rw-r--r-- | net/socket/tcp_client_socket_libevent.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |