int
stdout_normal( void )
{
-# if defined(_WIN32)
+# if defined(_MSC_VER)
HANDLE hStdout;
WORD wAttributes;
int
stdout_stress( int is_promote, int ifrom )
{
-# if defined(_WIN32)
+# if defined(_MSC_VER)
HANDLE hStdout;
WORD wAttributes;
&dwTotalBytesAvail, &dwBytesLeftThisMessage );
if ( ! bSuccess )
{
+ if( GetLastError() == 6)
+ {
+ return _kbhit();
+ }
+ Out("peek error %d\n", GetLastError());
str_error = "PeekNamedPipe() faild.";
return -1;
}