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

Do not fdopen() fds 1, 2 but use sys.* instead #15

Closed
wants to merge 1 commit into from
Closed

Conversation

mgorny
Copy link
Member

@mgorny mgorny commented May 16, 2024

Apparently fdopening stdout and stderr is a bad idea and can cause the interpreter to crash. Use sys.stdout or sys.stderr, respectively, when these fds are passed.

Bug: open-vcpkg/python-registry#10

Apparently fdopening stdout and stderr is a bad idea and can cause
the interpreter to crash.  Use sys.stdout or sys.stderr, respectively,
when these fds are passed.

Bug: open-vcpkg/python-registry#10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
@mgorny mgorny closed this May 16, 2024
@mgorny mgorny deleted the fdopen-fix branch May 16, 2024 15:10
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.

None yet

1 participant