Merge pull request #1015 from luukvbaal/preview-tui

Fix preview-tui zombie pager
This commit is contained in:
Piña Colada 2021-05-16 16:47:40 +05:30 committed by GitHub
commit 715abc7a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -305,8 +305,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