Disown so we don't see it

This commit is contained in:
Ryan Hughes
2025-11-16 22:32:04 -05:00
parent 27dfc23139
commit 78bc4d34c5

View File

@@ -67,14 +67,15 @@ stop_log_output() {
local ANSI_SHOW_CURSOR="\033[?25h" local ANSI_SHOW_CURSOR="\033[?25h"
if [ -n "${monitor_pid:-}" ]; then if [ -n "${monitor_pid:-}" ]; then
# Disown the process to prevent "Killed" message
disown $monitor_pid 2>/dev/null || true
# Kill child processes first (tail -F) with SIGKILL # Kill child processes first (tail -F) with SIGKILL
pkill -9 -P $monitor_pid 2>/dev/null || true pkill -9 -P $monitor_pid 2>/dev/null || true
# Kill the monitor process with SIGKILL for immediate termination # Kill the monitor process with SIGKILL for immediate termination
kill -9 $monitor_pid 2>/dev/null || true kill -9 $monitor_pid 2>/dev/null || true
# Don't wait - SIGKILL is immediate
# Clean up temp buffer file # Clean up temp buffer file
rm -f /tmp/omarchy-log-buffer.txt /tmp/omarchy-log-buffer.tmp 2>/dev/null || true rm -f /tmp/omarchy-log-buffer.txt /tmp/omarchy-log-buffer.tmp 2>/dev/null || true