| OLD | NEW |
| 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 "content/zygote/zygote_linux.h" | 5 #include "content/zygote/zygote_linux.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/posix/global_descriptors.h" | 22 #include "base/posix/global_descriptors.h" |
| 23 #include "base/posix/unix_domain_socket_linux.h" | 23 #include "base/posix/unix_domain_socket_linux.h" |
| 24 #include "base/process/kill.h" | 24 #include "base/process/kill.h" |
| 25 #include "content/common/child_process_sandbox_support_impl_linux.h" | 25 #include "content/common/child_process_sandbox_support_impl_linux.h" |
| 26 #include "content/common/sandbox_linux/sandbox_linux.h" | 26 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 27 #include "content/common/set_process_title.h" | 27 #include "content/common/set_process_title.h" |
| 28 #include "content/common/zygote_commands_linux.h" | 28 #include "content/common/zygote_commands_linux.h" |
| 29 #include "content/public/common/content_descriptors.h" | 29 #include "content/public/common/content_descriptors.h" |
| 30 #include "content/public/common/result_codes.h" | 30 #include "content/public/common/result_codes.h" |
| 31 #include "content/public/common/sandbox_linux.h" | 31 #include "content/public/common/sandbox_linux.h" |
| 32 #include "content/public/common/send_zygote_child_ping_linux.h" |
| 32 #include "content/public/common/zygote_fork_delegate_linux.h" | 33 #include "content/public/common/zygote_fork_delegate_linux.h" |
| 33 #include "ipc/ipc_channel.h" | 34 #include "ipc/ipc_channel.h" |
| 34 #include "ipc/ipc_switches.h" | 35 #include "ipc/ipc_switches.h" |
| 35 | 36 |
| 36 #if defined(ADDRESS_SANITIZER) | 37 #if defined(ADDRESS_SANITIZER) |
| 37 #include <sanitizer/asan_interface.h> | 38 #include <sanitizer/asan_interface.h> |
| 38 #endif | 39 #endif |
| 39 | 40 |
| 40 // See http://code.google.com/p/chromium/wiki/LinuxZygote | 41 // See http://code.google.com/p/chromium/wiki/LinuxZygote |
| 41 | 42 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 PickleIterator iter) { | 585 PickleIterator iter) { |
| 585 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != | 586 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != |
| 586 sizeof(sandbox_flags_)) { | 587 sizeof(sandbox_flags_)) { |
| 587 PLOG(ERROR) << "write"; | 588 PLOG(ERROR) << "write"; |
| 588 } | 589 } |
| 589 | 590 |
| 590 return false; | 591 return false; |
| 591 } | 592 } |
| 592 | 593 |
| 593 } // namespace content | 594 } // namespace content |
| OLD | NEW |