]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix preview-tui zombie pager
authorLuuk van Baal <luukvbaal@gmail.com>
Sun, 16 May 2021 11:02:12 +0000 (13:02 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Sun, 16 May 2021 11:02:12 +0000 (13:02 +0200)
plugins/preview-tui
plugins/preview-tui-ext

index 5f6a9bd7665cf1676f7500eb7f6cd2f4ae40973b..854907bc68c49329a1be693e77de34eb19725a6e 100755 (executable)
@@ -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
index ade673a5e73e4c62b991ef851309b1aee3dd29cb..c88389b91b217c66dcf4aa6e42167ba9acbd98ca 100755 (executable)
@@ -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