Re: [PATCH] selftests/seccomp: Flush benchmark output regularly

From: Kees Cook
Date: Thu May 27 2021 - 18:20:35 EST


On Thu, May 27, 2021 at 02:05:38PM -0500, Will Drewry wrote:
> On Wed, May 26, 2021 at 10:30 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> >
> > When running the seccomp benchmark under a test runner, it wouldn't
> > provide any feedback on progress. Force IO flushes during the test.
>
> Would it make sense to just setbuf(stdout, NULL); in main?

*forehead slap* Ugh, yes. That works much better. I will respin. Thank
you for the reminder about setbuf() existing. :)

-Kees

--
Kees Cook