小编dfd*_*qzp的帖子

How fo force subprocess to refresh stdout buffer?

Platform: windows 8.1 IDE: vs2013 use c/c++

Process A read stdout of subprocess using pipe redirect.

but subprocess dont invoke fflush after printf, so processs A cant read anything from pipe before subprocess run to end.

ps: I have souce code of subprecess, but its very hard to modify them.

So whether Process A can force subprocess refresh stdout buffer to read something before subprocess run to end? (the same effective as fflush)

subprocess fflush

6
推荐指数
0
解决办法
1324
查看次数

标签 统计

fflush ×1

subprocess ×1