]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: fix kmsg read if read returns EPIPE
authorMilan Broz <mbroz@redhat.com>
Mon, 13 Aug 2012 11:55:30 +0000 (13:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Aug 2012 13:54:57 +0000 (15:54 +0200)
commit4ceb601d21f9448f02e713a0860fd8007f3631b8
treeb805693c4fa0ae1c977f27d59ec32693cad90fdb
parent3514cc3a8f14cc39589fee3edefaa161ac1bd0a6
dmesg: fix kmsg read if read returns EPIPE

The /dev/kmsg can return EPIPE if current record has beed modified
while reading.

For init_kmsg, it cause switch to DMESG_METHOD_SYSLOG
(which is not expected) and later it can truncate output.

Signed-off-by: Milan Broz <mbroz@redhat.com>
sys-utils/dmesg.c