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

Side by Side Diff: base/process_util_posix.cc

Issue 8773051: use os_bsd and OS_BSD and add some OS_FREEBSD conditions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: style Created 9 years 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
« no previous file with comments | « base/process_util_freebsd.cc ('k') | build/common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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>
(...skipping 15 matching lines...) Expand all
26 #include "base/logging.h" 26 #include "base/logging.h"
27 #include "base/memory/scoped_ptr.h" 27 #include "base/memory/scoped_ptr.h"
28 #include "base/process_util.h" 28 #include "base/process_util.h"
29 #include "base/stringprintf.h" 29 #include "base/stringprintf.h"
30 #include "base/synchronization/waitable_event.h" 30 #include "base/synchronization/waitable_event.h"
31 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 31 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
32 #include "base/threading/platform_thread.h" 32 #include "base/threading/platform_thread.h"
33 #include "base/threading/thread_restrictions.h" 33 #include "base/threading/thread_restrictions.h"
34 #include "base/time.h" 34 #include "base/time.h"
35 35
36 #if defined(OS_FREEBSD)
37 #include <sys/event.h>
38 #include <sys/ucontext.h>
39 #endif
40
36 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
37 #include <crt_externs.h> 42 #include <crt_externs.h>
38 #include <sys/event.h> 43 #include <sys/event.h>
39 #else 44 #else
40 extern char** environ; 45 extern char** environ;
41 #endif 46 #endif
42 47
43 namespace base { 48 namespace base {
44 49
45 namespace { 50 namespace {
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 if (IsChildDead(process)) 1306 if (IsChildDead(process))
1302 return; 1307 return;
1303 1308
1304 BackgroundReaper* reaper = new BackgroundReaper(process, 0); 1309 BackgroundReaper* reaper = new BackgroundReaper(process, 0);
1305 PlatformThread::CreateNonJoinable(0, reaper); 1310 PlatformThread::CreateNonJoinable(0, reaper);
1306 } 1311 }
1307 1312
1308 #endif // !defined(OS_MACOSX) 1313 #endif // !defined(OS_MACOSX)
1309 1314
1310 } // namespace base 1315 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_freebsd.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698