bitbake/utils: Ignore OSError in unlockfile

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-01-24 14:26:50 +00:00
parent a3cb784945
commit 74783fec56

View File

@@ -450,7 +450,7 @@ def unlockfile(lf):
# removing the lockfile. Attempt this, ignore failures.
fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB)
os.unlink(lf.name)
except IOError:
except IOError, OSError:
pass
fcntl.flock(lf.fileno(), fcntl.LOCK_UN)
lf.close()