From 5533f152bd9f23bc26c4673b587d111003e76422 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Fri, 4 Jun 2021 16:43:59 +0200 Subject: [PATCH] Fix preview-tui zombie --- plugins/preview-tui | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/preview-tui b/plugins/preview-tui index 5f0ff856..63b1e057 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -380,6 +380,9 @@ winch_handler() { tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi preview_file "$(cat "$CURSEL")" + if ! kill -0 "$NNN_PARENT" || ! pgrep nnn; then + pkill -P "$$" + fi } 2>/dev/null preview_fifo() {