summaryrefslogtreecommitdiffstats
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 00:54:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 00:54:36 +0000
commit618d3861bd2def033ca638fb1572ab72a0af7393 (patch)
tree5b81c97b6e04272bdde445aaf82e4643b7f515a1 /version.c
parent28961331009d40ef637717726412f3f775aedab0 (diff)
downloadruby-618d3861bd2def033ca638fb1572ab72a0af7393.tar.gz
ruby-618d3861bd2def033ca638fb1572ab72a0af7393.tar.xz
ruby-618d3861bd2def033ca638fb1572ab72a0af7393.zip
* version.c (ruby_show_version): flush for non-tty stdout.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/version.c b/version.c
index 0b8068500..63c519a6f 100644
--- a/version.c
+++ b/version.c
@@ -39,6 +39,7 @@ void
ruby_show_version()
{
printf("ruby %s (%s) [%s]\n", RUBY_VERSION, RUBY_RELEASE_DATE, RUBY_PLATFORM);
+ fflush(stdout);
}
void