diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 06:01:33 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-15 06:01:33 +0000 |
commit | 216dcd80ffaa233be3f61d7e21eeeb13bad58795 (patch) | |
tree | f10d988df6e4cf4b9dd0c45a77a440aa34d7a15c /win32 | |
parent | 46590a41321abd10239f069907bed04221e5d870 (diff) | |
download | ruby-216dcd80ffaa233be3f61d7e21eeeb13bad58795.tar.gz |
* 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/trunk@12282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-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 090cf20d0b..663136619f 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 |