diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-11-18 11:26:24 +0100 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2023-11-18 16:36:56 -0700 |
| commit | d1eb36c96a5d98b0ea9a4422fbd247261e169fa5 (patch) | |
| tree | bff77ad7813c2263bd151025ef813c7b77ad5e04 /lua/lexers/javascript.lua | |
| parent | 1e64b1c13aa0f4b41f564223b6c0529a56959f85 (diff) | |
| download | vis-d1eb36c96a5d98b0ea9a4422fbd247261e169fa5.tar.gz vis-d1eb36c96a5d98b0ea9a4422fbd247261e169fa5.tar.xz | |
destroy the correct subprocess
When a new subprocess is created during an EXIT event of
another subprocess new_process_in_pool will update the
process_pool pointer. Since we use a pointer to a pointer
for iterating all processes during vis_process_tick its
value will be different before executing the event and after
creating the new subprocess. This causes the updated pointer
to be erroneously destroyed and leaves the Process of the
reaped child behind which causes consecutive waitpid calls
to fail with ECHILD.
This is fixed by destroying the proper current subprocess
and updating the iteration pointer accordingly.
Fixes: 0b015320382e74fcb385a46a81304f588ed27f77
Diffstat (limited to 'lua/lexers/javascript.lua')
0 files changed, 0 insertions, 0 deletions
