summaryrefslogtreecommitdiffstats
path: root/base/process_linux.cc
diff options
context:
space:
mode:
authortbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-22 22:34:58 +0000
committertbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-22 22:34:58 +0000
commit73c7c832714fe9a67f1521d1cdcc8ff864fab816 (patch)
tree56d90d1d66861ec692edbb82fbdab3f2e9de8844 /base/process_linux.cc
parent37e77e0728caea3744ca15956260904bff58efc2 (diff)
downloadchromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.zip
chromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.tar.gz
chromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.tar.bz2
CheckForNicePermission: Make sure can_reraise_priority is set in ctor
CID=102592 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8989035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_linux.cc')
-rw-r--r--base/process_linux.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_linux.cc b/base/process_linux.cc
index cb413e1..9f69596 100644
--- a/base/process_linux.cc
+++ b/base/process_linux.cc
@@ -107,9 +107,7 @@ bool Process::SetProcessBackgrounded(bool background) {
}
struct CheckForNicePermission {
- bool can_reraise_priority;
-
- CheckForNicePermission() {
+ CheckForNicePermission() : can_reraise_priority(false) {
// We won't be able to raise the priority if we don't have the right rlimit.
// The limit may be adjusted in /etc/security/limits.conf for PAM systems.
struct rlimit rlim;
@@ -118,6 +116,8 @@ struct CheckForNicePermission {
can_reraise_priority = true;
}
};
+
+ bool can_reraise_priority;
};
// static