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

ForkProcess: Implement fd_pipes via send_handle #1136

Merged

Conversation

zmedico
Copy link
Member

@zmedico zmedico commented Oct 20, 2023

This new fd_pipes implementation is only enabled
when the multiprocessing start method is not fork,
ensuring backward compatibility with existing
ForkProcess callers that rely on the fork start
method.

Note that the new fd_pipes implementation uses a
thread via run_in_executor, and threads are not
recommended for mixing with the fork start method
due to cpython issue 84559.

Bug: https://bugs.gentoo.org/915896

@zmedico zmedico force-pushed the bug_915896_ForkProcess_fd_pipes_send_handle branch 3 times, most recently from 47de61c to 5e9c89d Compare October 21, 2023 02:47
@zmedico zmedico marked this pull request as ready for review October 21, 2023 02:49
@zmedico zmedico force-pushed the bug_915896_ForkProcess_fd_pipes_send_handle branch 2 times, most recently from e35c7e7 to b58b643 Compare October 21, 2023 03:45
@zmedico zmedico force-pushed the bug_915896_ForkProcess_fd_pipes_send_handle branch from b58b643 to 44fd27b Compare October 22, 2023 04:13
This new fd_pipes implementation is only enabled
when the multiprocessing start method is not fork,
ensuring backward compatibility with existing
ForkProcess callers that rely on the fork start
method.

Note that the new fd_pipes implementation uses a
thread via run_in_executor, and threads are not
recommended for mixing with the fork start method
due to cpython issue 84559.

Bug: https://bugs.gentoo.org/915896
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_915896_ForkProcess_fd_pipes_send_handle branch from 44fd27b to 6abc969 Compare October 22, 2023 04:18
@gentoo-bot gentoo-bot merged commit 6abc969 into gentoo:master Oct 22, 2023
10 checks passed
@zmedico zmedico deleted the bug_915896_ForkProcess_fd_pipes_send_handle branch October 22, 2023 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants