]> sourceware.org Git - lvm2.git/commit
poll: add stdout fflush after poll query
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 7 May 2018 09:46:09 +0000 (11:46 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Sat, 12 May 2018 09:30:05 +0000 (11:30 +0200)
commit6740c78e838b0b2322097de307fb41f1eeb60839
tree37fa8fc3879a138ca8ee9302f6b93ba1959621ea
parent09fcc8eaa8eb7fa4fcd7c6611bfbfb83f726ae38
poll: add stdout fflush after poll query

ATM it's a bit ugly to enforce flushing of 'stdio' here, but works as quick
hot-fix.

log_print*() is using buffered I/O.

But for pooling with typical 1s interval this may take a while before
buffer about continues progress gets flushed.
So ATM fflush().

TODO: either add  log_print*_with_flush() or maybe directly use just
line buffering with log_print() and only log_debug() keep using buffered
I/O mode.
tools/polldaemon.c
This page took 0.039578 seconds and 5 git commands to generate.