From 7aab062ef3772c7e8e50fc872a1647918c76dbba Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 7 Jan 2016 02:34:33 +0000 Subject: version.c: no exit in ruby_show_copyright * include/ruby/backward.h (ruby_show_copyright_to_die): for source code backward compatibility. * ruby.c (process_options): return Qtrue to exit the process successfully. * version.c (ruby_show_copyright): no longer exit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- version.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'version.c') diff --git a/version.c b/version.c index 6caf91226a..4c7b1abb40 100644 --- a/version.c +++ b/version.c @@ -96,12 +96,10 @@ ruby_show_version(void) fflush(stdout); } -/*! Prints the copyright notice of the CRuby interpreter to stdout and \em exits - * this process successfully. - */ +/*! Prints the copyright notice of the CRuby interpreter to stdout. */ void ruby_show_copyright(void) { PRINT(copyright); - exit(EXIT_SUCCESS); + fflush(stdout); } -- cgit v1.2.3