From 7f8f2a33d1240746c3f43ce1275a768cd6a7f415 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 15 May 2007 05:55:06 +0000 Subject: * 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 --- win32/win32.c | 1 + 1 file changed, 1 insertion(+) (limited to 'win32/win32.c') 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 -- cgit v1.2.3