diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 05:55:06 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 05:55:06 +0000 |
commit | 7f8f2a33d1240746c3f43ce1275a768cd6a7f415 (patch) | |
tree | 50bd892fcff1d7635d1f4149ec691a0716b91a26 /win32/win32.c | |
parent | 39e50d214d1db4834acf4480a816a99b159385fc (diff) |
* win32/win32.c (init_stdhandle): stderr should be without buffering,
but mswin32 use buffering when stderr is not connected to tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index cd344eac94..ba0a26b602 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1778,6 +1778,7 @@ init_stdhandle(void) if (fileno(stderr) < 0) { stderr->_file = 2; } + setvbuf(stderr, NULL, _IONBF, 0); } #else |