From: Richard Purdie Date: Mon, 24 Jan 2011 14:26:50 +0000 (+0000) Subject: bitbake/utils: Ignore OSError in unlockfile X-Git-Tag: 2011-1~2747 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=74783fec56d6ced1a793b36410233472e7daf445;p=openembedded-core.git bitbake/utils: Ignore OSError in unlockfile Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c6bbae87a4..f2a79bd630 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -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()