Skip to content

disable parallel output buffering to debug blocking workers #2164

@milahu

Description

@milahu

"parallel output buffering" is nice because

parallel build output is much more useful when several processes' output isn't garbled up together. (source)

but this becomes a problem when workers block (hang forever)
so i dont see their output, and i cant debug them

in debug mode, instead of "block-buffered"
the output should be line-buffered, with the PID as line prefix

similar issue: #545

relevant code

buf_.append(buf, len);

quickfix: always print live output → branch (diff)

edit:
broken: printing garbage <F8>TD instead of line_prefix
fixed by mallocing the line_prefix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions