summaryrefslogtreecommitdiffstats
path: root/base/shared_memory_posix.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 19:57:15 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 19:57:15 +0000
commit0701ad5e7a6f5607ae6315f355eac2bdfd4c7080 (patch)
tree9b6b99cca88ea9792f8f8e66e48e48056fdbfc0e /base/shared_memory_posix.cc
parente09b2362174de67d10405c5031a713410c3c94f6 (diff)
downloadchromium_src-0701ad5e7a6f5607ae6315f355eac2bdfd4c7080.zip
chromium_src-0701ad5e7a6f5607ae6315f355eac2bdfd4c7080.tar.gz
chromium_src-0701ad5e7a6f5607ae6315f355eac2bdfd4c7080.tar.bz2
Valid FDs are >= 0 (> -1), not >= -1.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1937008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory_posix.cc')
-rw-r--r--base/shared_memory_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc
index 3bdf097..009f91e 100644
--- a/base/shared_memory_posix.cc
+++ b/base/shared_memory_posix.cc
@@ -264,7 +264,7 @@ bool SharedMemory::ShareToProcessCommon(ProcessHandle process,
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;