Disabling stdout buffering of a forked process

后端 未结 4 1423
一生所求
一生所求 2020-12-17 23:44

I wrote a code in C/C++ which forks a child process, duplicates the stdin/stdout into a pipe ends and calls execvp.

Everything is working fine (i.e. the output from

4条回答
  •  -上瘾入骨i
    2020-12-18 00:03

    http://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00164.html

    you can use LD_PRELOAD to setvbuf

提交回复
热议问题