diff options
author | Stef Walter <stef@memberwebs.com> | 2009-01-16 18:13:37 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-01-16 18:13:37 +0000 |
commit | 22abf1c85f0c3ccebb3b3b6675e7770e6f665241 (patch) | |
tree | e0bf792f6722055e1d8a5042d2f97ea196765fc9 | |
parent | fc3446bb70fdb46b780f75975cb98aff1106bfc8 (diff) |
- Don't run jail-measure if no jails are running.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | module/bsnmp-jails.c | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,7 @@ - Add support for monitoring CPU time of a jail. - Number of threads in jail exposed via SNMP. - Tracking of combined RSS memory of jail. + - Don't run jail-measure if no jails are running. 0.4 - Fix problems with capturing IPv6 packets. diff --git a/module/bsnmp-jails.c b/module/bsnmp-jails.c index 542d30c..075ee50 100644 --- a/module/bsnmp-jails.c +++ b/module/bsnmp-jails.c @@ -721,6 +721,9 @@ measure_get_command (void) char **args; int i; + if (!jaildat_count) + return NULL; + args = calloc (jaildat_count + 4, sizeof (char*)); if (!args) { emsg ("out of memory"); |