diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2026-06-18 17:44:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-18 17:44:29 -0400 |
| commit | a1da5d1f141f58158ffc33aa2c84e790633b57c9 (patch) | |
| tree | 3597a126260753d817b05c1e616117f74ba059f9 /test/functional/vimscript/executable_spec.lua | |
| parent | ae426ee4656687472daf6886db66cd9905d1a1c5 (diff) | |
| download | rneovim-a1da5d1f141f58158ffc33aa2c84e790633b57c9.tar.gz rneovim-a1da5d1f141f58158ffc33aa2c84e790633b57c9.tar.bz2 rneovim-a1da5d1f141f58158ffc33aa2c84e790633b57c9.zip | |
fix(:restart): set job env instead of mutating parent env #40308
Problem:
- Transient mutation of the parent env is visible to any concurrent
code. Or at least just kinda sloppy.
- Latent bug:`channel_job_start` queues the spawn and returns before
`uv_spawn` runs, so the prior `os_unsetenv` immediately after the call
could in principle race with the deferred spawn.
Solution:
Pass `env` to the channel.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions