Skip to content

Commit

Permalink
Merge pull request #292 from eliad-wiz/skip_empty_controllers
Browse files Browse the repository at this point in the history
cgroups: skip empty controllers
  • Loading branch information
eminence authored Nov 7, 2023
2 parents 71addc0 + f7d00a8 commit fa6e798
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions procfs-core/src/cgroups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl crate::FromBufRead for ProcessCGroups {
let hierarchy = from_str!(u32, expect!(s.next(), "hierarchy"));
let controllers = expect!(s.next(), "controllers")
.split(',')
.filter(|s| !s.is_empty())
.map(|s| s.to_owned())
.collect();
let pathname = expect!(s.next(), "path").to_owned();
Expand Down

0 comments on commit fa6e798

Please sign in to comment.