Azure / Azure/run-command-extension-linux
linux lsof hangs run-command-shim in function check_binary_write_lock
- Dominant language
- Go
- Stars
- 4
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
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})"`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.