summaryrefslogtreecommitdiffstats
path: root/base/shared_memory_posix.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 06:07:25 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 06:07:25 +0000
commitb266ffea340315ef1cee2c69afe314b545c08d91 (patch)
treebfaf304ed986ac5490474772ad85a06eb658edf6 /base/shared_memory_posix.cc
parentb5d41bf892f31b76ca39da16174d00378996b389 (diff)
downloadchromium_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.cc2
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;