diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-17 15:29:47 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-07-05 12:43:02 +0200 |
| commit | 4e7c348140b0ddc074c874f27399a3149a67e84d (patch) | |
| tree | 406efbc0b704f006807a87b2cb62baa56797101d | |
| parent | de19e4d2b6328f09f11abea5e56cb22a0fe6536e (diff) | |
| download | rust-4e7c348140b0ddc074c874f27399a3149a67e84d.tar.gz rust-4e7c348140b0ddc074c874f27399a3149a67e84d.zip | |
abort docs: Document buffer non-flushing
There is discussion of this in #40230 which requests clarification. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
| -rw-r--r-- | library/std/src/process.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs index 95108f96e06..00027591a13 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1898,6 +1898,9 @@ pub fn exit(code: i32) -> ! { /// process, no destructors on the current stack or any other thread's stack /// will be run. /// +/// Rust IO buffers (eg, from `BufWriter`) will not be flushed. +/// Likewise, C stdio buffers will (on most platforms) not be flushed. +/// /// This is in contrast to the default behaviour of [`panic!`] which unwinds /// the current thread's stack and calls all destructors. /// When `panic="abort"` is set, either as an argument to `rustc` or in a |
