armbian-build/lib/functions/general
Igor Velkov ccfe604902 memoize: add user feedback and configurable timeout for flock
When the memoize cache lock is held by another process (e.g., a stale
Docker container from a previous interrupted build), the build would
hang indefinitely without any feedback to the user.

This change:
- First tries non-blocking flock, acquiring immediately if available
- If lock is busy, informs user and waits with periodic status messages
- Adds MEMOIZE_FLOCK_WAIT_INTERVAL (default 10s) for message frequency
- Adds MEMOIZE_FLOCK_MAX_WAIT (default 0=infinite) for optional timeout
- Allows user to interrupt with Ctrl+C
- Suggests checking for stale containers: docker ps -a | grep armbian

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 01:40:21 +01:00
..
apt-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
bat-cat.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
chroot-helpers.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
cleaning.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
countdown.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
deprecations.sh stop the build if LIB_TAG is set at all; some users expect it to work while it doesn't 2023-03-17 08:32:11 +01:00
extensions.sh framework - extension_hook_opt_out 2026-01-08 12:07:56 +01:00
git-ref2info.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
git.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
github-actions.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
hash-files.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
memoize-cached.sh memoize: add user feedback and configurable timeout for flock 2026-01-21 01:40:21 +01:00
oci-oras.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
python-tools.sh "get completely rid of dead code toolchain stuff", pt2 2026-01-14 20:08:21 +01:00
retry.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
shellcheck.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00