diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-26 00:06:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-26 00:08:05 +0100 |
commit | a3033cea089c66c8b4614e7ee57c166f4262c590 (patch) | |
tree | 95621bfcb64f54cbba50ee2d9a0866bcc84fcb84 /lib/bb | |
parent | 8eb52afdfd4c3e6478d4f8cc56e99def3f1c924c (diff) | |
download | bitbake-a3033cea089c66c8b4614e7ee57c166f4262c590.tar.gz |
utils: Drop broken timeout function
I strongly suspect this function doesn't work with modern python so
and its unused now, drop it.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/utils.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 50032e50c..e51b8ca50 100644 --- a/lib/bb/utils.py +++ b/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 |