diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 2be4588a4f..f794505fd4 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -286,6 +286,9 @@ class ProcessServer(): | |||
286 | procs = None | 286 | procs = None |
287 | try: | 287 | try: |
288 | procs = subprocess.check_output(["lsof", '-w', lockfile], stderr=subprocess.STDOUT) | 288 | procs = subprocess.check_output(["lsof", '-w', lockfile], stderr=subprocess.STDOUT) |
289 | except subprocess.CalledProcessError: | ||
290 | # File was deleted? | ||
291 | continue | ||
289 | except OSError as e: | 292 | except OSError as e: |
290 | if e.errno != errno.ENOENT: | 293 | if e.errno != errno.ENOENT: |
291 | raise | 294 | raise |
@@ -293,6 +296,9 @@ class ProcessServer(): | |||
293 | # Fall back to fuser if lsof is unavailable | 296 | # Fall back to fuser if lsof is unavailable |
294 | try: | 297 | try: |
295 | procs = subprocess.check_output(["fuser", '-v', lockfile], stderr=subprocess.STDOUT) | 298 | procs = subprocess.check_output(["fuser", '-v', lockfile], stderr=subprocess.STDOUT) |
299 | except subprocess.CalledProcessError: | ||
300 | # File was deleted? | ||
301 | continue | ||
296 | except OSError as e: | 302 | except OSError as e: |
297 | if e.errno != errno.ENOENT: | 303 | if e.errno != errno.ENOENT: |
298 | raise | 304 | raise |