-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm writing distcc monitoring support for kdevelop (http://www.kdevelop.org).
I've found that using KDE's KProcess support, the output of distccmon-text
has to be flushed to be received in a timely manner, as per the attached
patch. Could you please apply this?
Thanks,
Hamish.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+/a5aH8BtnSmIlUYRArIUAKChh28AIYd/njtvM9EaAOJeHPSpXwCfZ7PR
+EUKKM+xNfyGo7K8hxcufwA=
=XMyz
-----END PGP SIGNATURE-----
Index: mon-text.c
===================================================================
RCS file: /cvsroot/distcc/src/mon-text.c,v
retrieving revision 1.9
diff -u -3 -p -r1.9 mon-text.c
--- mon-text.c 11 Jun 2003 14:09:39 -0000 1.9
+++ mon-text.c 28 Jun 2003 14:38:30 -0000
@@ -97,9 +97,11 @@ int main(int argc, char *argv[])
/* Assume 80 cols = */
printf("%6d %-10.10s %-30.30s %28.28s\n",
list->cpid, list->state, list->file, list->host);
+ fflush(stdout);
}
printf("\n");
+ fflush(stdout);
/* XXX: usleep() is probably not very portable */
usleep(delay * 1000000);
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc