Merge pull request #1052 from luukvbaal/preview-tui

Fix preview-tui zombie
This commit is contained in:
Piña Colada 2021-06-04 20:25:48 +05:30 committed by GitHub
commit 7b32e3bae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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