From 4965496c4a9f105eb1f9ae7e478e7ec96ee1df7b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 26 Aug 2020 00:06:08 +0100 Subject: 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 --- bitbake/lib/bb/utils.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'bitbake/lib') 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): for lock in locks: bb.utils.unlockfile(lock) -@contextmanager -def timeout(seconds): - def timeout_handler(signum, frame): - pass - - original_handler = signal.signal(signal.SIGALRM, timeout_handler) - - try: - signal.alarm(seconds) - yield - finally: - signal.alarm(0) - signal.signal(signal.SIGALRM, original_handler) - def lockfile(name, shared=False, retry=True, block=False): """ Use the specified file as a lock file, return when the lock has -- cgit v1.2.3-54-g00ecf