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

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

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_metrics.h" 5 #include "base/process/process_metrics.h"
6 6
7 #include <sys/resource.h> 7 #include <sys/resource.h>
8 #include <sys/time.h> 8 #include <sys/time.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 limits.rlim_cur = new_limit; 62 limits.rlim_cur = new_limit;
63 if (setrlimit(RLIMIT_NOFILE, &limits) != 0) { 63 if (setrlimit(RLIMIT_NOFILE, &limits) != 0) {
64 PLOG(INFO) << "Failed to set file descriptor limit"; 64 PLOG(INFO) << "Failed to set file descriptor limit";
65 } 65 }
66 } else { 66 } else {
67 PLOG(INFO) << "Failed to get file descriptor limit"; 67 PLOG(INFO) << "Failed to get file descriptor limit";
68 } 68 }
69 } 69 }
70 70
71 size_t GetPageSize() {
72 return getpagesize();
73 }
74
71 } // namespace base 75 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698