Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use POSIX_SPAWN_CLOEXEC_DEFAULT in posix_spawn.c when available #254

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

thomasjm
Copy link
Contributor

I'm looking at improving performance when close_fds=True after encountering #189.

I noticed this could be improved on MacOS where this flag is available. Making the do_spawn_posix function handle more situations will result in fewer fallbacks to the (possibly less performant) do_spawn_fork.

I haven't tested this yet, hoping to see how it works on CI.

@snoyberg snoyberg requested a review from bgamari July 22, 2022 07:38
@bgamari
Copy link
Contributor

bgamari commented Apr 5, 2023

Looks good, thanks @thomasjm!

@bgamari bgamari merged commit a8ef799 into haskell:master Apr 5, 2023
@thomasjm
Copy link
Contributor Author

thomasjm commented Apr 7, 2023

@bgamari I don't think you meant to merge this one! The one we've been working on together is #255.

@thomasjm
Copy link
Contributor Author

@bgamari hoping to get your attention here ^

@bgamari
Copy link
Contributor

bgamari commented May 10, 2023

Sigh, quite right. Thanks for noticing, @thomasjm! I'll revert this and we can carry on in #255.

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.

2 participants