summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-26 00:06:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-26 09:05:38 +0100
commit4965496c4a9f105eb1f9ae7e478e7ec96ee1df7b (patch)
tree6a3f1ff2fa5379fd0470fbd98411259700b96340 /bitbake/lib/bb/utils.py
parent8ecde1aa8fd1d23945c7e0edfd4921ab9707169a (diff)
downloadpoky-4965496c4a9f105eb1f9ae7e478e7ec96ee1df7b.tar.gz
bitbake: utils: Drop broken timeout function
I strongly suspect this function doesn't work with modern python so and its unused now, drop it. (Bitbake rev: a3033cea089c66c8b4614e7ee57c166f4262c590) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 50032e50c2..e51b8ca508 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -433,20 +433,6 @@ def fileslocked(files):
433 for lock in locks: 433 for lock in locks:
434 bb.utils.unlockfile(lock) 434 bb.utils.unlockfile(lock)
435 435
436@contextmanager
437def timeout(seconds):
438 def timeout_handler(signum, frame):
439 pass
440
441 original_handler = signal.signal(signal.SIGALRM, timeout_handler)
442
443 try:
444 signal.alarm(seconds)
445 yield
446 finally:
447 signal.alarm(0)
448 signal.signal(signal.SIGALRM, original_handler)
449
450def lockfile(name, shared=False, retry=True, block=False): 436def lockfile(name, shared=False, retry=True, block=False):
451 """ 437 """
452 Use the specified file as a lock file, return when the lock has 438 Use the specified file as a lock file, return when the lock has