git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1522
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2005-10-11 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/os_generic.c (os_get_rusage): Make conditional on DEBUGMODE
+ to mitigate bug #1313429.
+
2005-10-12 Perry Lorier <isomer@undernet.org>
* include/s_stats.h: Add new "Local" only flag to /stats.
2005-10-12 Perry Lorier <isomer@undernet.org>
* include/s_stats.h: Add new "Local" only flag to /stats.
-/*
- * 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.
* @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.
#endif /* HAVE_GETRUSAGE */
return 1;
}
#endif /* HAVE_GETRUSAGE */
return 1;
}
/** Look up the most recent socket error for a socket file descriptor.
* @param[in] fd File descriptor to check.
/** Look up the most recent socket error for a socket file descriptor.
* @param[in] fd File descriptor to check.