fe5f357446
This commit is an attempt at mitigating stray processes and temporary directories, which pile up in the process tree and `$TMPDIR` over time. To reproduce the issue, run the `lint` command in rapid successions, or simply run `:lint; lint; lint;` in the prompt (two consecutive calls are enough to trigger the bug). The first call creates a `\*lint-ouput*` buffer, bound to a named pipe that will be populated later on in an asychronous shell process. It's that same process that runs the linter afterward, and as soon as it has been spawned, the following call to `:lint` is executed. Each call to `:lint` overrides the path to the named pipe that was assigned to `\*lint-output*` by the previous one, resulting in several asynchronous processes (that write diagnostics to the pipe) hanging forever — the pipe is never read, and so the process idles. The command that removes the temporary directory follows the one that writes to the named pipe, it's never called in the above scenario, which additionally results in `kak-lint.XXXXXXXX` directories being left behind in `$TMPDIR`. (Also) Fixes #3681. |
||
---|---|---|
.. | ||
go | ||
python | ||
rust | ||
autorestore.asciidoc | ||
autorestore.kak | ||
autowrap.kak | ||
clang.kak | ||
comment.kak | ||
ctags.kak | ||
doc.asciidoc | ||
doc.kak | ||
format.kak | ||
git.kak | ||
grep.kak | ||
lint.asciidoc | ||
lint.kak | ||
make.kak | ||
man.kak | ||
spell.kak |