git-tools.kak: Fix leaking of pipe file descriptors in git-blame support

This commit is contained in:
Maxime Coste 2018-06-19 07:43:13 +10:00
parent a9b1c8f2d7
commit 119d2e89e0

View File

@ -90,6 +90,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
/^author-time ([0-9]*)/ { /^author-time ([0-9]*)/ {
cmd = "date -d @" $2 " +\"%F %T\"" cmd = "date -d @" $2 " +\"%F %T\""
cmd | getline dates[sha] cmd | getline dates[sha]
close(cmd)
} }
END { send_flags(); }' END { send_flags(); }'
) > /dev/null 2>&1 < /dev/null & ) > /dev/null 2>&1 < /dev/null &