Fix preview-tui zombie

This commit is contained in:
Luuk van Baal 2021-06-04 16:43:59 +02:00
parent 99e039d504
commit 5533f152bd

View file

@ -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() {