| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |