From f5fdfe73d63a89bcfe1336ffd967e4412fb577a3 Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Thu, 14 May 2026 14:02:59 -0400 Subject: [PATCH] fix: move terminate-process inside let* scope cat-proc and tty-in were defined by let* but the let* closed at sleep's third ), putting them out of scope for terminate-process and read-char. Restructured closing parens so the let* body wraps the full loop + cleanup. --- org/channel-tui-main.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org/channel-tui-main.org b/org/channel-tui-main.org index a00a9dc..447fb65 100644 --- a/org/channel-tui-main.org +++ b/org/channel-tui-main.org @@ -1008,7 +1008,8 @@ Event handlers + daemon I/O + main loop. nil :bold sel-p) (incf y-off))))))) (sleep 0.1))) - (uiop:terminate-process cat-proc)) + (uiop:terminate-process cat-proc) + (add-msg :system (format nil "* cat ~a ended *" (uiop:process-info-pid cat-proc)))) (progn (disconnect-daemon)))) #+END_SRC