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

Unified Diff: base/sync_socket_posix.cc

Issue 2814443007: EXPERIMENTAL (Closed)
Patch Set: Created 3 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 | « no previous file | content/browser/renderer_host/media/audio_renderer_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sync_socket_posix.cc
diff --git a/base/sync_socket_posix.cc b/base/sync_socket_posix.cc
index da995f4b64864478e1b53801d1f6529bb9aa2010..e04d2a4dbb91ece893a519b5891e15b69bd18f30 100644
--- a/base/sync_socket_posix.cc
+++ b/base/sync_socket_posix.cc
@@ -45,6 +45,7 @@ size_t SendHelper(SyncSocket::Handle handle,
bool CloseHandle(SyncSocket::Handle handle) {
if (handle != SyncSocket::kInvalidHandle && close(handle) < 0) {
+ CHECK(errno != EBADF) << "Probable double-close of socket handle.";
DPLOG(ERROR) << "close";
return false;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_renderer_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698