diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-07 02:34:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-07 02:34:33 +0000 |
commit | 7aab062ef3772c7e8e50fc872a1647918c76dbba (patch) | |
tree | 3bfaf1207aef12c325d9dd7a21ae9fe9a7788c06 /version.c | |
parent | 1491c4189a67a1a2ca0347e243190375dd4e002c (diff) | |
download | ruby-7aab062ef3772c7e8e50fc872a1647918c76dbba.tar.gz |
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
Diffstat (limited to 'version.c')
-rw-r--r-- | version.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); } |