On 04/27/2015 05:42 PM, Alexey Galakhov wrote: > On Mon, 27 Apr 2015 17:27:07 -0400 > J William Piggott <elseifthen@xxxxxxx> wrote: > >> I do not understand what this patch accomplishes. stdout is line >> buffered. All of hwclock -c output ends with \n, which flushes >> the buffer. Then we flush it again with fflush? What am I missing? > > stdout is line buffered only if it is not redirected. Thanks for the explanation, I wasn't aware of that. > Using the pipe > symbol in shell to redirect the output i.e. to awk results in not > flushing the buffer until it's full. > > A quick test: > $ hwclock -c | cat > > > Regards, > Alexey > -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html