diff options
Diffstat (limited to 'sliceweasel.lib.sh')
-rwxr-xr-x | sliceweasel.lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sliceweasel.lib.sh b/sliceweasel.lib.sh index 28091a0..d9a93c5 100755 --- a/sliceweasel.lib.sh +++ b/sliceweasel.lib.sh | |||
@@ -134,6 +134,13 @@ get_uid() | |||
134 | ) | 134 | ) |
135 | } | 135 | } |
136 | 136 | ||
137 | get_firefox_cgroup_procs() | ||
138 | { | ||
139 | uid=$(get_uid) | ||
140 | [ "$uid" ] || return | ||
141 | echo /sys/fs/cgroup/user.slice/user-$uid.slice/user@$uid.service/app.slice/firefox.service/cgroup.procs | ||
142 | } | ||
143 | |||
137 | get_current_group() | 144 | get_current_group() |
138 | { | 145 | { |
139 | read g < /proc/$$/cgroup | 146 | read g < /proc/$$/cgroup |