cdown / rpms / util-linux

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