From 93164bd9d738055c00388bac76d565d844da8d4a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Apr 2010 21:59:41 +0000 Subject: [PATCH] * process.c (rb_f_exit_bang, rb_f_exit, rb_f_abort): fix rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/process.c b/process.c index fb36b1cbdc..7bc0ce1e3b 100644 --- a/process.c +++ b/process.c @@ -2646,13 +2646,13 @@ rb_f_fork(VALUE obj) /* * call-seq: - * Process.exit!(fixnum=-1) + * Process.exit!(status=false) * * Exits the process immediately. No exit handlers are - * run. fixnum is returned to the underlying system as the + * run. status is returned to the underlying system as the * exit status. * - * Process.exit!(0) + * Process.exit!(true) */ static VALUE @@ -2700,14 +2700,17 @@ rb_exit(int status) /* * call-seq: - * exit(integer=0) - * Kernel::exit(integer=0) - * Process::exit(integer=0) + * exit(status=true) + * Kernel::exit(status=true) + * Process::exit(status=true) * * Initiates the termination of the Ruby script by raising the * SystemExit exception. This exception may be caught. The * optional parameter is used to return a status code to the invoking * environment. + * +true+ and +FALSE+ of _status_ means success and failure + * respectively. The interpretation of other integer values are + * system dependent. * * begin * exit @@ -2771,11 +2774,11 @@ rb_f_exit(int argc, VALUE *argv) /* * call-seq: * abort - * Kernel::abort - * Process::abort + * Kernel::abort([msg]) + * Process::abort([msg]) * * Terminate execution immediately, effectively by calling - * Kernel.exit(1). If _msg_ is given, it is written + * Kernel.exit(false). If _msg_ is given, it is written * to STDERR prior to terminating. */