Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 18, 2025

If a preloaded module writes to stdout or stderr, and the stream is buffered,
child processes will inherit the buffered data after forking. Attempt to
prevent this by flushing the streams after preload.
(cherry picked from commit 9877d19)

Co-authored-by: Duane Griffin duaneg@dghda.com
Co-authored-by: Mikhail Efimov efimov.mikhail@gmail.com
Co-authored-by: Victor Stinner vstinner@python.org

…odules (pythonGH-135338)

If a preloaded module writes to stdout or stderr, and the stream is buffered,
child processes will inherit the buffered data after forking. Attempt to
prevent this by flushing the streams after preload.
(cherry picked from commit 9877d19)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
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.

3 participants