Skip to content

Commit

Permalink
Merge pull request #1295 from ipfs/fix/lock-check
Browse files Browse the repository at this point in the history
catch other error that means the file is locked
  • Loading branch information
jbenet committed May 30, 2015
2 parents ee10b41 + 270b477 commit 1dd76fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo/fsrepo/lock/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func Locked(confdir string) (bool, error) {
if err == syscall.EAGAIN {
return true, nil
}
if strings.Contains(err.Error(), "can't Lock file") {
return true, nil
}

// lock fails on permissions error
if os.IsPermission(err) {
Expand Down

0 comments on commit 1dd76fd

Please sign in to comment.