diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 06:07:25 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 06:07:25 +0000 |
commit | b266ffea340315ef1cee2c69afe314b545c08d91 (patch) | |
tree | bfaf304ed986ac5490474772ad85a06eb658edf6 /base/shared_memory_posix.cc | |
parent | b5d41bf892f31b76ca39da16174d00378996b389 (diff) | |
download | chromium_src-b266ffea340315ef1cee2c69afe314b545c08d91.zip chromium_src-b266ffea340315ef1cee2c69afe314b545c08d91.tar.gz chromium_src-b266ffea340315ef1cee2c69afe314b545c08d91.tar.bz2 |
Fix problems in src/base:
- de-facto ignored return value of PathService::Get in base_paths_mac.mm
- missing EINTR handling in other files
I was just reading the code looking for some issues.
BUG=none
Review URL: http://codereview.chromium.org/6820030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/shared_memory_posix.cc')
-rw-r--r-- | base/shared_memory_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc index 538aed4..873432a 100644 --- a/base/shared_memory_posix.cc +++ b/base/shared_memory_posix.cc @@ -142,7 +142,7 @@ bool SharedMemory::CreateNamed(const std::string& name, return false; const uint32 current_size = stat.st_size; if (current_size != size) { - if (ftruncate(fileno(fp), size) != 0) + if (HANDLE_EINTR(ftruncate(fileno(fp), size)) != 0) return false; if (fseeko(fp, size, SEEK_SET) != 0) return false; |