Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux lsof hangs run-command-shim in function check_binary_write_lock #16

Open
andlic45 opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@andlic45
Copy link

andlic45 commented Apr 1, 2024

run-command-shim shell ( function check_binary_write_lock ) script uses "lsof" to find some locking info, see below section of the code.
lsof could hang due to various reasons and so the calling script run-command-shim, one example is with unresponsive filesystems like NFS mounts.
The solution may be to use other non-blocking ways to find required info or simply remove this verification.
Thank you

check_binary_write_lock() { set +e # disable exit on non-zero return code local retry_attempts=0 while (( retry_attempts < 10 )); do lsof_result="$(lsof -F ac ${bin})"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant