`ChildStdout::read()` blocks indefinitely

stdbuf and any other kind of manipulation performed by reader.rs is going to work only as long as prg_a somehow allows it. For instance, glibc and some other libc’s can be configured, but that same stdbuf is not going to do anything to change your Rust program which prints something too: LineBuffer usage is hardcoded there. Also note

NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does for e.g.) then that will override corresponding settings changed by 'stdbuf'. Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O, and are thus unaffected by 'stdbuf' settings.

, Rust situation with LineBuffer wrapping structure which is a marker for using raw file descriptors counts as not using streams.