We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Documentation on reactor.spawnProcess says the following about env parameter:
env is None: On POSIX: pass os.environ
However, twisted has this code in the code path leading to a call to posix_spawnp().
if environment is None: environment = {}
This leads to a subprocess being initialized with empty environment even though os.environ was expected.
os.environ
Describe how to cause this behavior
There's a PR with automated tests added to Twisted.
Describe the correct behavior you'd like to see
Subprocess having parent process environment when invoked via reactor.spawnProcess(..., env=None).
reactor.spawnProcess(..., env=None)
Testing environment
Additional context Probably a regression since 23.8.0 when posix_spawnp was enabled.
The text was updated successfully, but these errors were encountered:
pipewire audio output works better if env is not empty...
c2694a3
probably just a workaround for twisted/twisted#12068
#12068: Fix incorrect env handling in spawnProcess on Posix when posi…
11c9f58
…x_spawnp is used. (#12069)
Successfully merging a pull request may close this issue.
Documentation on reactor.spawnProcess says the following about env parameter:
env is None: On POSIX: pass os.environ
However, twisted has this code in the code path leading to a call to posix_spawnp().
This leads to a subprocess being initialized with empty environment even though
os.environ
was expected.Describe how to cause this behavior
There's a PR with automated tests added to Twisted.
Describe the correct behavior you'd like to see
Subprocess having parent process environment when invoked via
reactor.spawnProcess(..., env=None)
.Testing environment
Additional context
Probably a regression since 23.8.0 when posix_spawnp was enabled.
The text was updated successfully, but these errors were encountered: