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

Side by Side Diff: sandbox/linux/seccomp/securemem.cc

Issue 672011: Added missing copyright header. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/linux/seccomp/sandbox.h ('k') | sandbox/linux/seccomp/socketcall.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) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
1 #include "debug.h" 5 #include "debug.h"
2 #include "mutex.h" 6 #include "mutex.h"
3 #include "sandbox_impl.h" 7 #include "sandbox_impl.h"
4 #include "securemem.h" 8 #include "securemem.h"
5 9
6 namespace playground { 10 namespace playground {
7 11
8 void SecureMem::abandonSystemCall(int fd, int err) { 12 void SecureMem::abandonSystemCall(int fd, int err) {
9 void* rc = reinterpret_cast<void *>(err); 13 void* rc = reinterpret_cast<void *>(err);
10 if (err) { 14 if (err) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 Sandbox::die("Failed to send system call"); 96 Sandbox::die("Failed to send system call");
93 } 97 }
94 if (parentMapsFd >= 0) { 98 if (parentMapsFd >= 0) {
95 while (!Mutex::waitForUnlock(&Sandbox::syscall_mutex_, 500)) { 99 while (!Mutex::waitForUnlock(&Sandbox::syscall_mutex_, 500)) {
96 dieIfParentDied(parentMapsFd); 100 dieIfParentDied(parentMapsFd);
97 } 101 }
98 } 102 }
99 } 103 }
100 104
101 } // namespace 105 } // namespace
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/sandbox.h ('k') | sandbox/linux/seccomp/socketcall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698