You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filelock-unix.c; file descriptor "filedes" is not closed if no lock is received (due to timeout or SIGINT). This can cause a bunch of files to be left open if using filelock through an interactive shell (R, rstudio, etc..)
Reproduce
session 1:
$ R --vanilla
> library(filelock)
> lock("/tmp/test.lck")
Lock on ‘/tmp/test.lck’
$ R --vanilla
> library(filelock)
> lock("/tmp/test.lck",timeout=1)
NULL #<-- timeout, as expected
lsof:
# at this point I'd expect there to still only be 1 open file but...:
$ lsof | grep "test.lck"
R 11476 jacobs 3u REG 0,53 0 2393006 /tmp/test.lck
R 17162 jacobs 3u REG 0,53 0 2393006 /tmp/test.lck
Issue
filelock-unix.c; file descriptor "filedes" is not closed if no lock is received (due to timeout or SIGINT). This can cause a bunch of files to be left open if using filelock through an interactive shell (R, rstudio, etc..)
Reproduce
session 1:
lsof:
session 2:
lsof:
Workaround
The workaround I am currently using for this can be found here:
#master...kdee-korreyd:closefile
The text was updated successfully, but these errors were encountered: