Fix preview-tui zombie pager

This commit is contained in:
Luuk van Baal 2021-05-16 13:02:12 +02:00
parent 5fba2ba749
commit 5cc98987c5
2 changed files with 2 additions and 2 deletions

View file

@ -307,8 +307,8 @@ if [ "$PREVIEW_MODE" ]; then
preview_file "$PWD/$1"
preview_fifo &
wait "$!"
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
pkill -P "$$"
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
else
if [ ! -r "$NNN_FIFO" ]; then
clear

View file

@ -404,8 +404,8 @@ if [ "$PREVIEW_MODE" ]; then
preview_file "$PWD/$1"
preview_fifo &
wait "$!"
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
pkill -P "$$"
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
else
if [ ! -r "$NNN_FIFO" ]; then
clear