Skip to content

What does "before-main stdio file descriptors are not guaranteed to be open on unix platforms" mean? #137490

Closed
@nabijaczleweli

Description

@nabijaczleweli

Location

library/std/src/lib.rs, module-level rustdoc

  • before-main stdio file descriptors are not guaranteed to be open on unix platforms

Summary

What does this mean? I'm assuming this was supposed to be "before main, " since file descriptors are a property of the process at all times, but even then... this implies that fd0/1/2 may be... closed? between exec returning and the runtime calling main? and then become open somehow? on main entry? I don't believe there to be any UNIX system ever in history where this is true?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions