Skip to content

::std::process::exit does not document interpretation of the argument #35046

Closed
@nagisa

Description

@nagisa

On systems where the glibc exit call is used, the exit code returned to the OS is actually code & 0xff. This made my exit code of 0xb00_b00 be a success.

We should either figure out how to make glibc pass through the exit code verbatim, or document this atrocity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions