summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-24 14:26:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-24 14:26:50 +0000
commit74783fec56d6ced1a793b36410233472e7daf445 (patch)
tree47885ad6e3be059bae5d94adc925abdeb607165a /bitbake
parenta3cb7849452bca9d90a5c806cd47c5a5c1a7e5cc (diff)
downloadpoky-74783fec56d6ced1a793b36410233472e7daf445.tar.gz
bitbake/utils: Ignore OSError in unlockfile
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
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):
450 # removing the lockfile. Attempt this, ignore failures. 450 # removing the lockfile. Attempt this, ignore failures.
451 fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB) 451 fcntl.flock(lf.fileno(), fcntl.LOCK_EX|fcntl.LOCK_NB)
452 os.unlink(lf.name) 452 os.unlink(lf.name)
453 except IOError: 453 except IOError, OSError:
454 pass 454 pass
455 fcntl.flock(lf.fileno(), fcntl.LOCK_UN) 455 fcntl.flock(lf.fileno(), fcntl.LOCK_UN)
456 lf.close() 456 lf.close()