Skip to content

Harden std_run timeout retry behavior#113

Merged
codeforester merged 1 commit into
mainfrom
bug/112-20260704-std-run-timeout-hardening
Jul 4, 2026
Merged

Harden std_run timeout retry behavior#113
codeforester merged 1 commit into
mainfrom
bug/112-20260704-std-run-timeout-hardening

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • cache timeout/gtimeout discovery once per std_run call instead of once per retry attempt
  • make fallback timeout setup failures return 1 instead of command-not-found 127
  • kill the fallback timer with SIGKILL after the command exits so its EXIT trap cannot remove the timeout marker first
  • log Adding section to ... when update_file_section appends a new managed section

Fixes #112.

Validation

  • bats lib/bash/std/tests/lib_std.bats
  • bats lib/bash/file/tests/lib_file.bats
  • ./tests/validate.sh
  • git diff --check

@codeforester codeforester force-pushed the bug/112-20260704-std-run-timeout-hardening branch from 17e134f to 8e95ec5 Compare July 4, 2026 01:15
@codeforester codeforester merged commit 0e20d01 into main Jul 4, 2026
2 checks passed
@codeforester codeforester deleted the bug/112-20260704-std-run-timeout-hardening branch July 4, 2026 01:17
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

Successfully merging this pull request may close these issues.

Harden std_run timeout retry internals and section logs

1 participant