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
To check if a file is locked on Unix, the fcntl API can be used. In R, there does not seem to be a way to call fcntl directly, but in python it works like this:
I'm not aware of a general mechanism to find out which process is holding the lock on Unix. lslocks and lsof can only show local processes, not processes on other machines for network filesystems like NFS or GPFS, and I'm not aware of APIs to obtain the other machine/process which holds locks in these cases (but fcntl does show that the file is locked when the filesystem has remote locking support like NFS4 or GPFS).
Useful for r-lib/pkgdepends#141, then we can print out the pid of the other process.
The text was updated successfully, but these errors were encountered: