freebsd-ports/sysutils/xmbmon/files/patch-mbmon.c
Sunpoet Po-Chuan Hsieh 15b9e9def8 - Add LICENSE [2]
- Merge sysutils/mbmon [2]
- Add support for Intel 82801I (ICH9) SMBus controller [1]
- Support STAGEDIR [2]

PR:		ports/184521 [1], ports/184628 [2]
Submitted by:	Dmitry S. Luhtionov <mitya@cabletv.dp.ua> [1],
		Muhammad Moinur Rahman <5u623l20@gmail.com> (maintainer) [2]
2013-12-25 15:07:47 +00:00

27 lines
717 B
C

--- mbmon.c.orig 2004-08-13 16:23:32.000000000 +0900
+++ mbmon.c 2009-06-10 12:13:47.000000000 +0900
@@ -315,7 +315,7 @@
name = argv[0];
#if !defined(LINUX) && defined(HAVE_SMBUS) && defined(SMBUS_IOCTL)
- while ((ch = getopt(argc,argv,"VSIAfdDYe:p:s:c:T:F:tunNirh")) != -1) {
+ while ((ch = getopt(argc,argv,"VSIAfdDYe:p:s:c:T:F:tunNirhP:")) != -1) {
#else
while ((ch = getopt(argc,argv,"VSIAfdDYe:p:c:T:F:tunNirhP:")) != -1) {
#endif
@@ -641,6 +641,7 @@
fprintf(out, "%4d\n%4d\n%4d\n", rot1, rot2, rot3);
}
if (port) {
+ fflush(out);
#ifdef LOGGING
if (nfd)
#endif
@@ -659,6 +660,7 @@
if (hostname_flag == 1) {
hostname(sh_flag);
}
+ fflush(stdout);
/* count */
if (count != 0) {