Skip to content

无法实时接收输出 #1

@notify-bibi

Description

@notify-bibi

当被调试程序无setvbuf(STDOUT, 0)时, 只有进程退出才会flush, 导致输出无法实时捕获。这个问题当然是libc干的,将输出缓存了起来,就算打印回车\n也是如此。
解决办法正在想,暂时无思路,求师傅指一条路?感激不尽

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions