Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2005-10-12 01:48:43 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/os_generic.c
Log message:
Make os_get_rusage() conditional on DEBUGMODE.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.10 ircu2.10/ChangeLog:1.710.2.11
--- ircu2.10/ChangeLog:1.710.2.10 Tue Oct 11 18:13:48 2005
+++ ircu2.10/ChangeLog Tue Oct 11 18:48:33 2005
@@ -1,3 +1,8 @@
+2005-10-11 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/os_generic.c (os_get_rusage): Make conditional on DEBUGMODE
+ to mitigate bug #1313429.
+
2005-10-12 Perry Lorier <[EMAIL PROTECTED]>
* include/s_stats.h: Add new "Local" only flag to /stats.
Index: ircu2.10/ircd/os_generic.c
diff -u ircu2.10/ircd/os_generic.c:1.23 ircu2.10/ircd/os_generic.c:1.23.2.1
--- ircu2.10/ircd/os_generic.c:1.23 Sun May 8 18:55:26 2005
+++ ircu2.10/ircd/os_generic.c Tue Oct 11 18:48:33 2005
@@ -18,7 +18,7 @@
*/
/** @file
* @brief Implementation of OS-dependent operations.
- * @version $Id: os_generic.c,v 1.23 2005/05/09 01:55:26 entrope Exp $
+ * @version $Id: os_generic.c,v 1.23.2.1 2005/10/12 01:48:33 entrope Exp $
*/
#include "config.h"
@@ -162,14 +162,8 @@
#endif
-/*
- * This is part of the STATS replies. There is no official numeric for this
- * since this isn't an official command, in much the same way as HASH isn't.
- * It is also possible that some systems wont support this call or have
- * different field names for "struct rusage".
- * -avalon
- */
-/** Send resource usage information to a client.
+#ifdef DEBUGMODE
+/** Send resource usage information to an enumerator function.
* @param[in] cptr Client requesting information.
* @param[in] uptime Wall time in seconds since the server started.
* @param[in] enumerator Function to call to send a line to \a cptr.
@@ -262,6 +256,7 @@
#endif /* HAVE_GETRUSAGE */
return 1;
}
+#endif
/** Look up the most recent socket error for a socket file descriptor.
* @param[in] fd File descriptor to check.
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches