Skip to content

Commit

Permalink
Fix 'too many open files' during module uninstall
Browse files Browse the repository at this point in the history
Recently uninstalling modules might give a 'too many open files' error. By making a call to `.dir` eager this error goes away, although I'm not clear why or what changed in e.g. libuv that would require this now.
  • Loading branch information
ugexe committed Apr 18, 2021
1 parent 10c3dbb commit ca0b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository/Installation.pm6
Expand Up @@ -81,7 +81,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

for $short-dir.dir -> $dir {
$dir.add($id).unlink;
$dir.rmdir unless $dir.dir;
$dir.rmdir unless $dir.dir.elems;
}
}

Expand Down

0 comments on commit ca0b8fc

Please sign in to comment.