Skip to content

Commit

Permalink
Fix unit tests for ubuntu 24.04, new lsof version
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Oct 15, 2024
1 parent 7e8363e commit 0d6eae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flock/flock_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Release(lock int) error {

// CheckLock checks whether any process is using the lock
func CheckLock(path string) bool {
lockByte, _ := exec.Command("lsof", "-w", "-F", "ln", path).Output()
lockByte, _ := exec.Command("lsof", "-w", "-F", "lfn", path).Output()
locks := string(lockByte)
if locks == "" {
return false
Expand Down

0 comments on commit 0d6eae2

Please sign in to comment.