don't fill up logs in wait_for
Jim Kingdon
kingdon@panix.com
Mon Apr 8 15:47:00 GMT 2002
Any objections to the enclosed patch?
2002-04-08 Jim Kingdon <kingdon@panix.com>
* kernel/socket.c (wait_for): Don't print debugging output (such
as "waiting %d secs for input"). In some error cases, it just
writes to the log at a rate of megabytes per second.
Index: kernel/socket.c
===================================================================
RCS file: /cvs/xconq/xconq/kernel/socket.c,v
retrieving revision 1.10
diff -u -r1.10 socket.c
--- kernel/socket.c 7 Apr 2002 08:48:12 -0000 1.10
+++ kernel/socket.c 8 Apr 2002 22:41:02 -0000
@@ -353,18 +353,6 @@
struct timeval tv;
fd_set readfds, exceptfds;
- {
- static int counter = 0;
- if (timeout > 0) {
- Dprintf("Waiting %d secs for input\n", timeout);
- } else {
- counter = (++counter) % 1000;
-#if 0 /* too much output */
- if (counter == 999)
- Dprintf("Checking for input 999 times\n");
-#endif
- }
- }
FD_ZERO (&readfds);
FD_ZERO (&exceptfds);
More information about the Xconq7
mailing list