cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
6717ab
diff -up util-linux-2.23.2/sys-utils/dmesg.c.kzak util-linux-2.23.2/sys-utils/dmesg.c
6717ab
--- util-linux-2.23.2/sys-utils/dmesg.c.kzak	2013-07-30 11:22:47.213494455 +0200
6717ab
+++ util-linux-2.23.2/sys-utils/dmesg.c	2014-09-24 10:24:49.179371108 +0200
6717ab
@@ -991,6 +991,8 @@ static int init_kmsg(struct dmesg_contro
6717ab
 
6717ab
 	if (!ctl->follow)
6717ab
 		mode |= O_NONBLOCK;
6717ab
+	else
6717ab
+		setlinebuf(stdout);
6717ab
 
6717ab
 	ctl->kmsg = open("/dev/kmsg", mode);
6717ab
 	if (ctl->kmsg < 0)