Commit 1dd76fd1 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #1295 from ipfs/fix/lock-check

catch other error that means the file is locked
parents ee10b410 270b4770
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment