Skip to content

fix(spawn): clean up initialized macOS state only - #15531

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

fix(spawn): clean up initialized macOS state only#15531
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-pomwvolqmoro

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

The POSIX spawn initializers return error numbers directly. On failure
the stub discarded those values and entered cleanup with spawn
attributes, file actions, and spawn_info still uninitialized.

Record each initializer result and track which objects were initialized
so cleanup only destroys valid state and reports the original error.

@rgrinberg
rgrinberg force-pushed the push-pomwvolqmoro branch from b81d732 to 10d494e Compare July 18, 2026 08:43
The POSIX spawn initializers return error numbers directly. On failure
the stub discarded those values and entered cleanup with spawn
attributes, file actions, and spawn_info still uninitialized.

Record each initializer result and track which objects were initialized
so cleanup only destroys valid state and reports the original error.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-pomwvolqmoro branch from 10d494e to efccd0a Compare July 19, 2026 01:52
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