[Feature request] Command-line option for syncing output to files on every line

Igor Zhbanov izh1979 at gmail.com
Fri Dec 9 09:23:34 UTC 2016


Hi!

Sometimes you need to debug some system services running during system boot,
or crashing the system, so you are unable to correctly terminate the
strace -- it will
be running until system hang or forcibly reboot. And in the end of strace output
sometimes you will find blocks of zeros instead of proper output. Or
last lines will
not be written to disk at all because of not-flushed buffers.

So it would be nice to have a command-line option that will enable "synchronous"
mode where fdatasync() is called after every line of output
(especially when written
to files).

What you think?

Thank you.




More information about the Strace-devel mailing list