Skip to content

Conversation

marmarek
Copy link
Contributor

What does this PR do?

Python 3.14 changed multiprocessing method from 'fork' to 'forkserver' on Linux too:
python/cpython#84559

This leads to issue similar to when Python 3.8 changed it on Mac OS: #57742

Change the condition to check for != 'fork' instead of == 'spawn'.

Question: should salt.util.platform.spawning_platform() be changed instead? forkserver isn't exactly the same as spawn, but it's more similar to it than to fork.

What issues does this PR fix or reference?

Related to #68148

Previous Behavior

Fails similar to #57742 on Linux with Python 3.14 (Fedora 43 beta)

New Behavior

Doesn't crash anymore

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy
Copy link
Contributor

I think it makes more sense to modify salt.util.platform.spawning_platform(), but let's have @dwoz weigh in.

Python 3.14 changed multiprocessing method from 'fork' to 'forkserver'
on Linux too:
python/cpython#84559

This leads to issue similar to when Python 3.8 changed it on Mac OS:
saltstack#57742

Change the condition to check for != 'fork' instead of == 'spawn'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants