Skip to content

Commit

Permalink
Tweak real-world CGroups tests trying to get them to also run on MS W…
Browse files Browse the repository at this point in the history
…indows
  • Loading branch information
HenrikBengtsson committed Nov 27, 2024
1 parent facebd2 commit 2470abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: parallelly
Version: 1.39.0-9007
Version: 1.39.0-9008
Title: Enhancing the 'parallel' Package
Imports:
parallel,
Expand Down
2 changes: 1 addition & 1 deletion R/cgroups.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ withCGroups <- function(tarball, expr = NULL, envir = parent.frame(), tmpdir = N
message(" - Adjust /proc/self/mounts accordingly:")
file <- file.path(tmpdir, "proc", "self", "mounts")
bfr <- readLines(file, warn = FALSE)
bfr <- gsub("/sys/fs/cgroup", file.path(tmpdir, "sys/fs/cgroup"), bfr)
bfr <- gsub("/sys/fs/cgroup", file.path(tmpdir, "sys/fs/cgroup", fsep = "/"), bfr)
writeLines(bfr, con = file)
bfr <- readLines(file, warn = FALSE)
bfr <- sprintf(" %02d: %s", seq_along(bfr), bfr)
Expand Down

0 comments on commit 2470abe

Please sign in to comment.