Skip to content

rt::atexit callbacks don't run after exit(0) call #28065

Closed
@sfackler

Description

@sfackler

Specifically, the stdout buffer doesn't flush: from #28058:

fn main() { print!("Hi!"); } results in "Hi!", fn main() { print!("Hi!"); std::process::exit(0); } results in no output.

We should probably just be using libc atexit here.

cc @alexcrichton

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