Switch to the FreeBSD built-in lockf instead of the package flock.

This commit is contained in:
Tom Alexander 2024-05-04 12:23:56 -04:00
parent 06fb8db40a
commit faa9b7bb62
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 1 additions and 3 deletions

View File

@ -38,7 +38,7 @@ function log {
function run_locked { function run_locked {
if [ "${RUN_LOCKED:-}" != "RUN" ]; then if [ "${RUN_LOCKED:-}" != "RUN" ]; then
exec env RUN_LOCKED=RUN flock --nonblock $LOCKFILE $0 $@ exec env RUN_LOCKED=RUN lockf -t 0 $LOCKFILE $0 $@
fi fi
} }

View File

@ -82,7 +82,6 @@ sysutils/cpu-microcode
sysutils/ddrescue sysutils/ddrescue
sysutils/dsbmd sysutils/dsbmd
sysutils/exfat-utils sysutils/exfat-utils
sysutils/flock
sysutils/fusefs-exfat sysutils/fusefs-exfat
sysutils/fusefs-simple-mtpfs sysutils/fusefs-simple-mtpfs
sysutils/fusefs-sshfs sysutils/fusefs-sshfs

View File

@ -26,7 +26,6 @@
- poudriere - poudriere
- bash - bash
- rsync - rsync
- flock
state: present state: present
- name: Create directories - name: Create directories