Files
Linux_post_install/bin
Your Name df1cca478d
gates / consistency-and-conventions (push) Successful in 23s
fix: Telegram listener — async command execution + singleton guard
Root cause: run_and_reply() blocked the entire listener synchronously.
FFmpeg hung because child processes inherited stdin (waiting for 'q').
Long-running commands froze the listener for up to 120s.

Fix:
- Commands run in background with stdin=/dev/null, output to temp file
- reap_commands() collects output non-blocking after each getUpdates cycle
- SIGCHLD handler pre-caches exit codes via wait -n
- TERM/INT trap kills background processes and cleans temp files
- Singleton guard (flock) prevents duplicate listeners racing getUpdates

Tests:
- t-telegram-listener-exec.sh: 12 hermetic checks (echo, pipes, stderr,
  compound commands, long-running, quiet mode)
- t-telegram-listener-singleton.sh: 8 checks (lock acquire/release/status)

Architect verdict: accepted as-is, no re-architecture needed.
2026-09-09 17:17:56 -04:00
..
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
2026-09-04 13:58:38 -04:00
2026-08-05 05:47:45 -04:00
2026-08-05 05:47:45 -04:00
2026-08-05 05:47:45 -04:00
2026-08-09 04:57:28 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00
.
2026-07-28 10:28:11 -04:00