@cryptotaxi247 / kubo / commits / 270b47702

catch other error that means the file is locked

Jeromy committed May 26, 2015 at 17:19 UTC 270b47702e5d4847a48135659043e9eaa3c27a2e
1 file changed +3
repo/fsrepo/lock/lock.go
+3
@@ -34,6 +34,9 @@ func Locked(confdir string) (bool, error) {
34 if err == syscall.EAGAIN {
35 return true, nil
36 }
37 + if strings.Contains(err.Error(), "can't Lock file") {
38 + return true, nil
39 + }
40
41 // lock fails on permissions error
42 if os.IsPermission(err) {