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

Side by Side Diff: base/process/process_linux.cc

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: rebased, cleaned up the code, addressed comments Created 3 years, 8 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
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 "base/process/process.h" 5 #include "base/process/process.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sys/resource.h> 8 #include <sys/resource.h>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/threading/thread_restrictions.h" 17 #include "base/threading/thread_restrictions.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 19
20 // Not defined on AIX by default.
21 #if defined(OS_AIX)
22 #define RLIMIT_NICE 20
23 #endif
24
20 namespace base { 25 namespace base {
21 26
22 namespace { 27 namespace {
23 28
24 const int kForegroundPriority = 0; 29 const int kForegroundPriority = 0;
25 30
26 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
27 // We are more aggressive in our lowering of background process priority 32 // We are more aggressive in our lowering of background process priority
28 // for chromeos as we have much more control over other processes running 33 // for chromeos as we have much more control over other processes running
29 // on the machine. 34 // on the machine.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return kNullProcessId; 200 return kNullProcessId;
196 } 201 }
197 return value; 202 return value;
198 } 203 }
199 } 204 }
200 return kNullProcessId; 205 return kNullProcessId;
201 } 206 }
202 #endif // defined(OS_CHROMEOS) 207 #endif // defined(OS_CHROMEOS)
203 208
204 } // namespace base 209 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698