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

[ENH] using spawn with process pool instead of fork #22

Open
HYChou0515 opened this issue Nov 4, 2021 · 0 comments
Open

[ENH] using spawn with process pool instead of fork #22

HYChou0515 opened this issue Nov 4, 2021 · 0 comments
Labels
enhancement New feature or request macos mac os (osx) related

Comments

@HYChou0515
Copy link
Owner

Instead of using the default spawn of multiprocessing, we use fork to solve issue described this SO.

# we are doing it now
if platform == 'darwin':
    set_start_method("fork")

However, using fork may cause memory leak issue and segmentation fault ( #21 ). It seems more preferable using process pool and we don’t need to use fork.

@HYChou0515 HYChou0515 linked a pull request Nov 4, 2021 that will close this issue
@HYChou0515 HYChou0515 removed a link to a pull request Nov 4, 2021
@HYChou0515 HYChou0515 added enhancement New feature or request macos mac os (osx) related labels Nov 4, 2021
HYChou0515 added a commit that referenced this issue Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request macos mac os (osx) related
Projects
None yet
Development

No branches or pull requests

1 participant