-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aborts: Clarify documentation and comments #85377
Commits on Jul 5, 2021
-
aborts: Clarify documentation and comments
In the docs for intrinsics::abort(): * Strengthen the recommendation by to use process::abort instead. * Document the fact that it (ab)uses an LLVM debug trap and what the likely consequences are. * State that the precise behaviour is unstable. In the docs for process::abort(): * Promise that we have the same behaviour as C `abort()`. * Document the likely consequences, including, specifically, the consequences on Unix. In the internal comment for unix::abort_internal: * Refer to the public docs for the public API functions. * Correct and expand the description of libc::abort. Specifically: * Do not claim that abort() unregisters signal handlers. It doesn't; it honours the SIGABRT handler. * Discuss, extensively, the issue with abort() flushing stdio buffers. * Describe the glibc behaviour in some detail. Co-authored-by: Mark Wooding <[email protected]> Signed-off-by: Ian Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a8bb7fa - Browse repository at this point
Copy the full SHA a8bb7faView commit details -
abort docs: Do not claim that intrinsics::abort is always a debug trap
As per discussion here rust-lang#85377 (review) Signed-off-by: Ian Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for de19e4d - Browse repository at this point
Copy the full SHA de19e4dView commit details -
abort docs: Document buffer non-flushing
There is discussion of this in rust-lang#40230 which requests clarification. Signed-off-by: Ian Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e7c348 - Browse repository at this point
Copy the full SHA 4e7c348View commit details -
Talk about invalid instructions rather than debug traps
And withdraw the allegation of "abuse". Adapted from a suggestion by @m-ou-se. Co-authored-by: Mara Bos <[email protected]> Signed-off-by: Ian Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 44852e0 - Browse repository at this point
Copy the full SHA 44852e0View commit details -
Talk about "terminate" rather than "die"
Adapted from a suggestion by @m-ou-se. Co-authored-by: Mara Bos <[email protected]> Signed-off-by: Ian Jackson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 19c347e - Browse repository at this point
Copy the full SHA 19c347eView commit details -
Use american spelling for behaviour
Co-authored-by: Yuki Okushi <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f73a555 - Browse repository at this point
Copy the full SHA f73a555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08d912f - Browse repository at this point
Copy the full SHA 08d912fView commit details