1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Call fflush() after printing sensor values. This allows to use mbmon

in scripts, etc.
This commit is contained in:
Jean-Yves Lefort 2006-05-03 19:46:55 +00:00
parent 08f03c80c5
commit b5bf6c927d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161291
2 changed files with 11 additions and 5 deletions

View File

@ -7,7 +7,7 @@
PORTNAME?= mbmon
PORTVERSION= 205
PORTREVISION?= 2
PORTREVISION?= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/
DISTNAME= xmbmon${PORTVERSION}

View File

@ -1,7 +1,5 @@
$FreeBSD$
--- mbmon.c Fri Aug 13 10:23:32 2004
+++ mbmon.c Tue Dec 27 16:59:48 2005
--- mbmon.c.orig Fri Aug 13 09:23:32 2004
+++ mbmon.c Wed May 3 21:32:44 2006
@@ -315,7 +315,7 @@
name = argv[0];
@ -11,3 +9,11 @@ $FreeBSD$
#else
while ((ch = getopt(argc,argv,"VSIAfdDYe:p:c:T:F:tunNirhP:")) != -1) {
#endif
@@ -640,6 +640,7 @@
else if (fanspeed == 7)
fprintf(out, "%4d\n%4d\n%4d\n", rot1, rot2, rot3);
}
+ fflush(out);
if (port) {
#ifdef LOGGING
if (nfd)