Skip to content

Commit 8a6c2e0

Browse files
committed
Add message for cleaning up the correct behavoir of cache lock
1 parent 13ab3f2 commit 8a6c2e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mbed/mbed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,8 @@ def cache_unlock(self, url):
14211421
pid = f.read(8)
14221422
if int(pid) != os.getpid():
14231423
error("Cache lock file exists with a different pid (\"%s\" vs \"%s\")" % (pid, os.getpid()))
1424+
else:
1425+
info("Cache lock file exists with my pid (\"%s\"). Cleaning up." % (pid))
14241426
except OSError:
14251427
error("Unable to unlock cache dir \"%s\"" % (cpath))
14261428
os.remove(lock_file)

0 commit comments

Comments
 (0)