summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-15 06:01:33 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-15 06:01:33 +0000
commitc62455a36bed91f67a810077ae52fd439e60fee9 (patch)
treef10d988df6e4cf4b9dd0c45a77a440aa34d7a15c /win32
parentc3df0c8cf837c04c4a1800eaf6fd81d320b9ddb4 (diff)
downloadruby-c62455a36bed91f67a810077ae52fd439e60fee9.tar.gz
ruby-c62455a36bed91f67a810077ae52fd439e60fee9.tar.xz
ruby-c62455a36bed91f67a810077ae52fd439e60fee9.zip
* win32/win32.c (init_stdhandle): stderr should be without buffering,
but mswin32 use buffering when stderr is not connected to tty. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 090cf20d0..663136619 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1754,6 +1754,7 @@ init_stdhandle(void)
stderr->_file = open_null(2);
}
if (nullfd >= 0 && !keep) close(nullfd);
+ setvbuf(stderr, NULL, _IONBF, 0);
}
#else