diff options
-rw-r--r-- | bitbake/lib/bb/utils.py | 14 |
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 | ||
437 | def 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 | |||
450 | def lockfile(name, shared=False, retry=True, block=False): | 436 | def 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 |