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

Unified Diff: base/shared_memory_posix.cc

Issue 1937008: Valid FDs are >= 0 (> -1), not >= -1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/shared_memory_posix.cc
===================================================================
--- base/shared_memory_posix.cc (revision 46461)
+++ base/shared_memory_posix.cc (working copy)
@@ -264,7 +264,7 @@
SharedMemoryHandle *new_handle,
bool close_self) {
const int new_fd = dup(mapped_file_);
- DCHECK(new_fd >= -1);
+ DCHECK(new_fd >= 0);
new_handle->fd = new_fd;
new_handle->auto_close = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698