From 4b100f75d2047de4f525f748fe8901471e8318ed Mon Sep 17 00:00:00 2001 From: Daniel DeLorme Date: Wed, 5 Apr 2023 09:16:26 -0400 Subject: [PATCH] [DOC] Clarify behavior of abort() with no argument Since Ruby 2.7 it prints the message and backtrace of $! Fixes [Bug #19578] --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 * Kernel.exit(false). 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