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

Side by Side Diff: content/common/sandbox_linux.cc

Issue 100253002: Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/plugin_list_posix.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <dirent.h> 5 #include <dirent.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <sys/resource.h> 7 #include <sys/resource.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 #include <sys/time.h> 9 #include <sys/time.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return false; 282 return false;
283 #endif // !defined(ADDRESS_SANITIZER) 283 #endif // !defined(ADDRESS_SANITIZER)
284 } 284 }
285 285
286 bool LinuxSandbox::HasOpenDirectories() { 286 bool LinuxSandbox::HasOpenDirectories() {
287 return sandbox::Credentials().HasOpenDirectory(proc_fd_); 287 return sandbox::Credentials().HasOpenDirectory(proc_fd_);
288 } 288 }
289 289
290 void LinuxSandbox::SealSandbox() { 290 void LinuxSandbox::SealSandbox() {
291 if (proc_fd_ >= 0) { 291 if (proc_fd_ >= 0) {
292 int ret = HANDLE_EINTR(close(proc_fd_)); 292 int ret = IGNORE_EINTR(close(proc_fd_));
293 CHECK_EQ(0, ret); 293 CHECK_EQ(0, ret);
294 proc_fd_ = -1; 294 proc_fd_ = -1;
295 } 295 }
296 } 296 }
297 297
298 } // namespace content 298 } // namespace content
299 299
OLDNEW
« no previous file with comments | « content/common/plugin_list_posix.cc ('k') | content/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698