commit | 4cf576f92ccc834dca80a1f08e904fb275a09fb6 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Apr 03 12:35:20 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Apr 03 12:35:20 2019 -0700 |
tree | bcafab9c50418c5d2d53e9444acb83c61980314d | |
parent | 37bfe73943801bb105d7ab658aeddbfec27091f7 [diff] | |
parent | f4dff4922365435dbb0a1c02e0c1e90f89c93e23 [diff] |
Merge changes from topic "libprocessgroup_rc" am: 25d42eeaa6 Change-Id: I73dab7acb0ae8359572c25e2138e11609d5878ef
diff --git a/init/init.cpp b/init/init.cpp index 1792f28..0f44efd 100644 --- a/init/init.cpp +++ b/init/init.cpp
@@ -359,7 +359,7 @@ // Have to create <CGROUPS_RC_DIR> using make_dir function // for appropriate sepolicy to be set for it make_dir(android::base::Dirname(CGROUPS_RC_PATH), 0711); - if (!CgroupSetupCgroups()) { + if (!CgroupSetup()) { return ErrnoError() << "Failed to setup cgroups"; }
diff --git a/libprocessgroup/setup/cgroup_map_write.cpp b/libprocessgroup/setup/cgroup_map_write.cpp index 6aabd56..26703ee 100644 --- a/libprocessgroup/setup/cgroup_map_write.cpp +++ b/libprocessgroup/setup/cgroup_map_write.cpp
@@ -277,7 +277,7 @@ } // namespace cgrouprc } // namespace android -bool CgroupSetupCgroups() { +bool CgroupSetup() { using namespace android::cgrouprc; std::map<std::string, CgroupDescriptor> descriptors;
diff --git a/libprocessgroup/setup/include/processgroup/setup.h b/libprocessgroup/setup/include/processgroup/setup.h index b488217..6ea1979 100644 --- a/libprocessgroup/setup/include/processgroup/setup.h +++ b/libprocessgroup/setup/include/processgroup/setup.h
@@ -16,4 +16,4 @@ #pragma once -bool CgroupSetupCgroups(); +bool CgroupSetup();