diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 83e832c336..da026fe5bf 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1860,6 +1860,7 @@ def path_is_descendant(descendant, ancestor): | |||
1860 | @contextmanager | 1860 | @contextmanager |
1861 | def lock_timeout(lock): | 1861 | def lock_timeout(lock): |
1862 | try: | 1862 | try: |
1863 | s = signal.pthread_sigmask(signal.SIG_BLOCK, signal.valid_signals()) | ||
1863 | held = lock.acquire(timeout=5*60) | 1864 | held = lock.acquire(timeout=5*60) |
1864 | if not held: | 1865 | if not held: |
1865 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) | 1866 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) |
@@ -1867,3 +1868,4 @@ def lock_timeout(lock): | |||
1867 | yield held | 1868 | yield held |
1868 | finally: | 1869 | finally: |
1869 | lock.release() | 1870 | lock.release() |
1871 | signal.pthread_sigmask(signal.SIG_SETMASK, s) | ||