Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: base/process_util_posix.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <dirent.h> 5 #include <dirent.h>
6 #include <errno.h> 6 #include <errno.h>
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <signal.h> 8 #include <signal.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <sys/resource.h> 10 #include <sys/resource.h>
11 #include <sys/time.h> 11 #include <sys/time.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <sys/wait.h> 13 #include <sys/wait.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #include <limits> 16 #include <limits>
17 #include <set> 17 #include <set>
18 18
19 #include "base/command_line.h" 19 #include "base/command_line.h"
20 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
21 #include "base/debug/stack_trace.h" 21 #include "base/debug/stack_trace.h"
22 #include "base/dir_reader_posix.h" 22 #include "base/dir_reader_posix.h"
23 #include "base/eintr_wrapper.h" 23 #include "base/eintr_wrapper.h"
24 #include "base/file_util.h" 24 #include "base/file_util.h"
25 #include "base/logging.h" 25 #include "base/logging.h"
26 #include "base/memory/scoped_ptr.h"
26 #include "base/process_util.h" 27 #include "base/process_util.h"
27 #include "base/scoped_ptr.h"
28 #include "base/stringprintf.h" 28 #include "base/stringprintf.h"
29 #include "base/synchronization/waitable_event.h" 29 #include "base/synchronization/waitable_event.h"
30 #include "base/threading/platform_thread.h" 30 #include "base/threading/platform_thread.h"
31 #include "base/threading/thread_restrictions.h" 31 #include "base/threading/thread_restrictions.h"
32 #include "base/time.h" 32 #include "base/time.h"
33 33
34 #if defined(OS_MACOSX) 34 #if defined(OS_MACOSX)
35 #include <crt_externs.h> 35 #include <crt_externs.h>
36 #include <sys/event.h> 36 #include <sys/event.h>
37 #define environ (*_NSGetEnviron()) 37 #define environ (*_NSGetEnviron())
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 const ProcessFilter* filter) { 998 const ProcessFilter* filter) {
999 bool exited_cleanly = 999 bool exited_cleanly =
1000 WaitForProcessesToExit(executable_name, wait_milliseconds, 1000 WaitForProcessesToExit(executable_name, wait_milliseconds,
1001 filter); 1001 filter);
1002 if (!exited_cleanly) 1002 if (!exited_cleanly)
1003 KillProcesses(executable_name, exit_code, filter); 1003 KillProcesses(executable_name, exit_code, filter);
1004 return exited_cleanly; 1004 return exited_cleanly;
1005 } 1005 }
1006 1006
1007 } // namespace base 1007 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698