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

Reopen standard file descriptors when they are missing on Unix #75295

Merged
merged 1 commit into from
Sep 28, 2020

Commits on Sep 27, 2020

  1. Reopen standard streams when they are closed on Unix

    The syscalls returning a new file descriptors generally use
    lowest-numbered file descriptor not currently opened, without any
    exceptions for those corresponding to the standard streams.
    
    Previously when any of standard streams has been closed before starting
    the application, operations on std::io::{stderr,stdin,stdout} objects
    were likely to operate on other logically unrelated file resources
    opened afterwards.
    
    Avoid the issue by reopening the standard streams when they are closed.
    tmiasko committed Sep 27, 2020
    Configuration menu
    Copy the full SHA
    7d98d22 View commit details
    Browse the repository at this point in the history