Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Oct 5, 2024
1 parent 66de2de commit 77a02af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions judge/create_cgroups.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
JUDGEHOSTUSER=@DOMJUDGE_USER@
CGROUPBASE="/sys/fs/cgroup"

# We do not need to do any of this with cgroup v2.
fs_type=$(awk '$2 == "/sys/fs/cgroup" {print $3}' /proc/mounts)
if [ "$fs_type" = "cgroup2" ]; then
echo "cgroup v2 detected, skipping cgroup creation" >&2
exit 0
fi

cgroup_error_and_usage () {
echo "$1" >&2
echo "To fix this, please make the following changes:
Expand Down

0 comments on commit 77a02af

Please sign in to comment.