cdown / rpms / util-linux

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