mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Flush stdout after each iteration.
Without this, if output is redirected from the console, it is buffered for too long, making tool quite unusable. MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
34d5464b85
commit
fcc8734127
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344844
@ -717,6 +717,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
fflush(stdout);
|
||||
ctx.flags &= ~CTLSTAT_FLAG_FIRST_RUN;
|
||||
if (count != 1)
|
||||
sleep(waittime);
|
||||
|
Loading…
Reference in New Issue
Block a user