summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2020-11-30 13:35:19 +0300
committerFrank LENORMAND <lenormf@gmail.com>2020-11-30 13:51:34 +0300
commitfe5f357446bd5b763b184bfcf142330ea51e6dca (patch)
tree2e2558d911b502ee7b4f70b37cb8d365edebaf89 /rc/tools/python
parent14f7d2637c80258d80e5ae204e16dbb67a896ebc (diff)
rc lint: Avoid stray processes and temporary directory
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.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions