Peter Pentchev:
If it is not easy to change the program itself, the stdbuf(1) utility
[...]
I am certain that M. MacLennan is capable of changing M. MacLennan's own
program. After all, you are replying to a message where xe said that xe
already did. (-:
Injecting things into the code of the running program via pre-loads
should be a last resort, not on an equal footing with adjusting the
program's logging. In any case, the Bernstein |ptybandage|
<http://jdebp.eu./Softwares/djbwares/bernstein-ptyget.html> achieves
this /without/ injecting code into the target programs.