OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <sched.h> | 5 #include <sched.h> |
6 #include <stddef.h> | |
7 #include <stdio.h> | 6 #include <stdio.h> |
8 #include <string.h> | 7 #include <string.h> |
9 #include <sys/socket.h> | 8 #include <sys/socket.h> |
10 #include <sys/syscall.h> | 9 #include <sys/syscall.h> |
11 #include <sys/wait.h> | 10 #include <sys/wait.h> |
12 #include <unistd.h> | 11 #include <unistd.h> |
13 | 12 |
14 #include <utility> | 13 #include <utility> |
15 #include <vector> | 14 #include <vector> |
16 | 15 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 258 |
260 // Parent process. | 259 // Parent process. |
261 recv_sock.reset(); | 260 recv_sock.reset(); |
262 SendHello(send_sock.get()); | 261 SendHello(send_sock.get()); |
263 WaitForExit(pid); | 262 WaitForExit(pid); |
264 } | 263 } |
265 | 264 |
266 } // namespace | 265 } // namespace |
267 | 266 |
268 } // namespace sandbox | 267 } // namespace sandbox |
OLD | NEW |