1
Fork 0

Rework at_exit to cleanup

This commit is contained in:
Christiaan Dirkx 2021-04-11 07:05:39 +02:00
parent 71965ab4d0
commit 5b30662741
13 changed files with 134 additions and 196 deletions

View file

@ -1749,7 +1749,7 @@ impl Child {
/// [platform-specific behavior]: #platform-specific-behavior
#[stable(feature = "rust1", since = "1.0.0")]
pub fn exit(code: i32) -> ! {
crate::sys_common::cleanup();
crate::sys_common::rt::cleanup();
crate::sys::os::exit(code)
}