Skip to content

tm-exclusions v1.4.1

Choose a tag to compare

@my-housekeeper my-housekeeper released this 28 Nov 23:11
· 45 commits to master since this release
v1.4.1
acc1f04

Fixes

  • A lost tmux client no longer leaves a work directory behind: stopping the interface removed the session with kill-session and kill-server back to back. The server then kills the pane processes outright, so the inner run never ran its traps and its own tm_exc_work.* directory stayed in TMPDIR (with the scan files) after the terminal was closed mid-run. tmux_cleanup now sends TERM to each live pane's process group and waits up to two seconds for the session to close, so the wrapper publishes its status and the inner run cleans up before anything is removed. Skipped once tmux.rc is published (a dead pane's pid may already belong to another process). Covered by the new "lost client mid-run" scenario in tests/test_tmux_ui.sh.

  • --tmux no longer shows a blank screen for the whole run: the attach client was started with a read-only reopen of the terminal (< /dev/ttysN). Real tmux (3.8) attaches such a client, registers it in list-clients, and then never draws the two panes, so the interface stayed empty from start to finish with no error, and --tmux looked like a run that output nothing. The client now gets a read-write handle (<> on the same device), and its stderr goes to TMP_DIR/tmux_attach.err instead of /dev/null; when the client fails while the run is still going, the first stderr line is reported next to MSG_TMUX_ATTACH_LOST. The /dev/tty fallback (rejected by tmux 3.8) is dropped: without a usable device the client runs on the inherited stdin and fails loudly. Covered by tests/test_tmux_ui.sh, which now checks that the attach client's stdin is O_RDWR and, on the real-tmux scenario, that the interface is actually drawn in the terminal.