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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/process/kill.h" | 8 #include "base/process/kill.h" |
9 #include "base/process/launch.h" | 9 #include "base/process/launch.h" |
10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
11 | 11 |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 #include <windows.h> | 13 #include <windows.h> |
14 | 14 |
15 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
16 #include "base/win/scoped_process_information.h" | 16 #include "base/win/scoped_process_information.h" |
17 #else | |
18 #include <errno.h> | |
tfarina
2015/11/07 16:10:56
Maybe do this in the POSIX case below?
Mostyn Bramley-Moore
2015/11/07 19:52:39
In this file errno is only used inside the else bl
tfarina
2015/11/08 13:59:33
Then should we move the includes below in this els
Mostyn Bramley-Moore
2015/11/09 16:40:07
I will defer to Brett on this.
brettw
2015/11/10 21:48:19
Personally I'd merge them all into the else.
Mostyn Bramley-Moore
2015/11/10 22:24:22
Done.
| |
17 #endif | 19 #endif |
18 | 20 |
19 #if defined(OS_POSIX) | 21 #if defined(OS_POSIX) |
20 #include <fcntl.h> | 22 #include <fcntl.h> |
21 #include <unistd.h> | 23 #include <unistd.h> |
22 | 24 |
23 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
24 #include "base/posix/file_descriptor_shuffle.h" | 26 #include "base/posix/file_descriptor_shuffle.h" |
25 #endif | 27 #endif |
26 | 28 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 return process.WaitForExit(exit_code); | 247 return process.WaitForExit(exit_code); |
246 } | 248 } |
247 } | 249 } |
248 | 250 |
249 return false; | 251 return false; |
250 } | 252 } |
251 #endif | 253 #endif |
252 | 254 |
253 } // namespace internal | 255 } // namespace internal |
254 | 256 |
OLD | NEW |