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 <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <poll.h> | 9 #include <poll.h> |
10 #include <signal.h> | 10 #include <signal.h> |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "base/pickle.h" | 24 #include "base/pickle.h" |
25 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
26 #include "base/posix/global_descriptors.h" | 26 #include "base/posix/global_descriptors.h" |
27 #include "base/posix/unix_domain_socket_linux.h" | 27 #include "base/posix/unix_domain_socket_linux.h" |
28 #include "base/process/kill.h" | 28 #include "base/process/kill.h" |
29 #include "base/process/launch.h" | 29 #include "base/process/launch.h" |
30 #include "base/process/process.h" | 30 #include "base/process/process.h" |
31 #include "base/process/process_handle.h" | 31 #include "base/process/process_handle.h" |
32 #include "base/time/time.h" | 32 #include "base/time/time.h" |
33 #include "base/trace_event/trace_event.h" | 33 #include "base/trace_event/trace_event.h" |
| 34 #include "build/build_config.h" |
34 #include "content/common/child_process_sandbox_support_impl_linux.h" | 35 #include "content/common/child_process_sandbox_support_impl_linux.h" |
35 #include "content/common/sandbox_linux/sandbox_linux.h" | 36 #include "content/common/sandbox_linux/sandbox_linux.h" |
36 #include "content/common/set_process_title.h" | 37 #include "content/common/set_process_title.h" |
37 #include "content/common/zygote_commands_linux.h" | 38 #include "content/common/zygote_commands_linux.h" |
38 #include "content/public/common/content_descriptors.h" | 39 #include "content/public/common/content_descriptors.h" |
39 #include "content/public/common/result_codes.h" | 40 #include "content/public/common/result_codes.h" |
40 #include "content/public/common/sandbox_linux.h" | 41 #include "content/public/common/sandbox_linux.h" |
41 #include "content/public/common/send_zygote_child_ping_linux.h" | 42 #include "content/public/common/send_zygote_child_ping_linux.h" |
42 #include "content/public/common/zygote_fork_delegate_linux.h" | 43 #include "content/public/common/zygote_fork_delegate_linux.h" |
43 #include "ipc/ipc_channel.h" | 44 #include "ipc/ipc_channel.h" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) { | 665 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) { |
665 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != | 666 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != |
666 sizeof(sandbox_flags_)) { | 667 sizeof(sandbox_flags_)) { |
667 PLOG(ERROR) << "write"; | 668 PLOG(ERROR) << "write"; |
668 } | 669 } |
669 | 670 |
670 return false; | 671 return false; |
671 } | 672 } |
672 | 673 |
673 } // namespace content | 674 } // namespace content |
OLD | NEW |