diff options
| author | bors <bors@rust-lang.org> | 2015-09-04 10:33:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-09-04 10:33:42 +0000 |
| commit | 6f1014f3510f3c5cc2b524aa4cb18bf91c3fd50f (patch) | |
| tree | e855c86773552140e5f2deca9ba37a4c20f153c6 /src/libstd/process.rs | |
| parent | b4de424e4175eefb4fda6e3ed634acfab3ec0daf (diff) | |
| parent | 04c09f9466c57dca50c643c6099c0f9957d62220 (diff) | |
| download | rust-6f1014f3510f3c5cc2b524aa4cb18bf91c3fd50f.tar.gz rust-6f1014f3510f3c5cc2b524aa4cb18bf91c3fd50f.zip | |
Auto merge of #28069 - alexcrichton:rt-atexit, r=brson
This adds a call to `rt::cleanup` on `process::exit` to make sure we clean up after ourselves on the way out from Rust. Closes #28065
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index be921d9aef0..79f2d16fef4 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -582,6 +582,7 @@ impl Child { /// to run. #[stable(feature = "rust1", since = "1.0.0")] pub fn exit(code: i32) -> ! { + ::rt::cleanup(); ::sys::os::exit(code) } |
