Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ray/common/cgroup2/sysfs_cgroup_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SysFsCgroupDriver : public CgroupDriverInterface {
/**
* @param mount_file_path only used for testing.
*/
explicit SysFsCgroupDriver(std::string mount_file_path = MOUNTED)
explicit SysFsCgroupDriver(std::string mount_file_path = kMountFilePath)
: mount_file_path_(std::move(mount_file_path)) {}

~SysFsCgroupDriver() override = default;
Expand Down Expand Up @@ -287,6 +287,7 @@ class SysFsCgroupDriver : public CgroupDriverInterface {
// Used for unit testing through the constructor.
std::string mount_file_path_;

static inline std::string kMountFilePath = "/proc/mounts";
static constexpr std::string_view kCgroupProcsFilename = "cgroup.procs";
static constexpr std::string_view kCgroupSubtreeControlFilename =
"cgroup.subtree_control";
Expand Down