aboutsummaryrefslogtreecommitdiffstats
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 02:34:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-07 02:34:33 +0000
commit028bdf3bbad7a833e58456a976788443771b26c1 (patch)
tree3bfaf1207aef12c325d9dd7a21ae9fe9a7788c06 /version.c
parent5036a420cea513d84148aa38377b650a27d0ca43 (diff)
downloadruby-028bdf3bbad7a833e58456a976788443771b26c1.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.c6
1 files changed, 2 insertions, 4 deletions
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);
}