bug#57501: call-with-file-lock does not remove lock file

2023-02-11 Thread Ludovic Courtès
Ricardo Wurmus skribis: > “call-with-file-lock” and “call-with-file-lock/no-wait” create a lock > file but don’t remove the lock file when they exit. > > (guix build syscalls) defines these procedures with “dynamic-wind” so > that the lock is always lifted with “unlock-file”. While “unlock-file”

bug#57501: call-with-file-lock does not remove lock file

2022-08-31 Thread Ricardo Wurmus
“call-with-file-lock” and “call-with-file-lock/no-wait” create a lock file but don’t remove the lock file when they exit. (guix build syscalls) defines these procedures with “dynamic-wind” so that the lock is always lifted with “unlock-file”. While “unlock-file” uses the fcntl syscall to remove t