On Wed, 2025-08-20 at 15:02 -0700, Andrii Nakryiko wrote: [...] > What's the concern with popen()? That we have to copy one stream into another? No concern, just see an additional loop as unnecessary, this does not matter much. > > I didn't like (instinctively) the implicitness of system() adding > something to veristat's output, and you just proved that instinct > correct with that fflush()... ;) You asked a question off-list on Tuesday whether system() and popen() behave the same, here is an answer (both are wrappers for 'sh -c'). [...]