logread: implement dumpfollow mode of operation
authorPhil Sutter <phil.sutter@viprinet.com>
Sun, 22 Mar 2015 16:36:20 +0000 (17:36 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Mar 2015 16:37:20 +0000 (17:37 +0100)
commit92edab1aa6eae45ac8fa0cec8c8df9a47f547300
tree738a5d864011189939847bceb8620af6371d4e62
parent6d8ea1d50ec6088c51a61ab3e9f849b7845dce6b
logread: implement dumpfollow mode of operation

This is basically a combination of the default (dump mode) and -f
(follow mode). Specifying -F makes logread first dump the log buffer and
then immediately start following it.

function                                             old     new   delta
packed_usage                                       30412   30443     +31
logread_main                                         491     497      +6

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sysklogd/logread.c