diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-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 992e200641..3a4b29181e 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1882,6 +1882,7 @@ def path_is_descendant(descendant, ancestor): | |||
1882 | @contextmanager | 1882 | @contextmanager |
1883 | def lock_timeout(lock): | 1883 | def lock_timeout(lock): |
1884 | try: | 1884 | try: |
1885 | s = signal.pthread_sigmask(signal.SIG_BLOCK, signal.valid_signals()) | ||
1885 | held = lock.acquire(timeout=5*60) | 1886 | held = lock.acquire(timeout=5*60) |
1886 | if not held: | 1887 | if not held: |
1887 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) | 1888 | bb.server.process.serverlog("Couldn't get the lock for 5 mins, timed out, exiting.\n%s" % traceback.format_stack()) |
@@ -1889,3 +1890,4 @@ def lock_timeout(lock): | |||
1889 | yield held | 1890 | yield held |
1890 | finally: | 1891 | finally: |
1891 | lock.release() | 1892 | lock.release() |
1893 | signal.pthread_sigmask(signal.SIG_SETMASK, s) | ||