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