Disable buffering on redirected stdout Pipe (Win32 API, C++)

前端 未结 3 1899
北荒
北荒 2020-12-01 16:21

I\'m spawning a process from Win32 using CreateProcess, setting the hStdOutput and hStdError properties of STARTUPINFO to

3条回答
  •  -上瘾入骨i
    2020-12-01 17:04

    The buffering is probably in the C runtime (printf etc) and there is not much you can do about it (IIRC it does a isatty() check to determine a buffering strategy)

提交回复
热议问题