Bug 1060925 - dmesg -w output not line-buffered
Summary: dmesg -w output not line-buffered
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1067354
TreeView+ depends on / blocked
 
Reported: 2014-02-03 23:40 UTC by Sami Farin
Modified: 2014-11-13 16:29 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
: 1067354 (view as bug list)
Environment:
Last Closed: 2014-10-24 14:16:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
util-linux-2.24-dmesg-follow-linebuf.patch (349 bytes, patch)
2014-02-03 23:40 UTC, Sami Farin
no flags Details | Diff

Description Sami Farin 2014-02-03 23:40:23 UTC
Created attachment 858876 [details]
util-linux-2.24-dmesg-follow-linebuf.patch

Description of problem:
when writing to e.g. a pipe, output from dmesg -w can come many minutes late due to buffering.

Version-Release number of selected component (if applicable):
2.24-2

How reproducible:
100%

Steps to Reproduce:
1. dmesg -w|cat
2.
3.

Actual results:
"follow" feature does not behave like "tail -f" as expected.
dmesg write()s in about 4096 byte blocks.

Expected results:
line-buffered output

Additional info:

Comment 1 Karel Zak 2014-02-06 10:52:17 UTC
Fixed by upstream commit 3938c08cd56a7c83ea387073c1404d0e864c9fa3, Fedora package will be updated ASAP.

Thanks!

Comment 2 Karel Zak 2014-10-24 14:16:35 UTC
Fixed in v2.25 (f21)


Note You need to log in before you can comment on or make changes to this bug.