Skip to content

fix(engine): release process resources when spawning fails - #16266

Open
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-yvsvvmmqkwts
Open

fix(engine): release process resources when spawning fails#16266
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-yvsvvmmqkwts

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Process spawning allocated output captures before opening descriptors and
calling Spawn.spawn, but released them only after spawning succeeded. An
exception therefore left captures and descriptors owned by a persistent Dune
process.

Release prepared outputs on both paths and remove captures and any response
file on failure. The regression from #16259 now observes an empty temporary
directory while Dune remains running.

Close prepared output descriptors and remove capture and response files when
process spawning raises after allocating them.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant