aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorDaniel DeLorme <daniel@dan42.com>2023-04-05 09:16:26 -0400
committerJeremy Evans <code@jeremyevans.net>2023-04-05 07:37:07 -0700
commit4b100f75d2047de4f525f748fe8901471e8318ed (patch)
tree530140d46c51683acc94acea75acc395f5cac9be /process.c
parent615a1bc470587614129c8a7f352286cf9d1c0fc6 (diff)
downloadruby-4b100f75d2047de4f525f748fe8901471e8318ed.tar.gz
[DOC] Clarify behavior of abort() with no argument
Since Ruby 2.7 it prints the message and backtrace of $! Fixes [Bug #19578]
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index daf3456bfd..4159f1e210 100644
--- a/process.c
+++ b/process.c
@@ -4365,7 +4365,8 @@ NORETURN(static VALUE f_abort(int c, const VALUE *a, VALUE _));
*
* Terminate execution immediately, effectively by calling
* <code>Kernel.exit(false)</code>. If _msg_ is given, it is written
- * to STDERR prior to terminating.
+ * to STDERR prior to terminating. Otherwise, if an exception was raised,
+ * print its message and backtrace.
*/
static VALUE