From 310cf063eb5dd86d2def2e2072cf5684dbd7f3fc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 18 Jul 2004 20:46:12 +0000 Subject: [PATCH] continue if a swapqry fails --- src/os/aix/aix_sigar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index b0678712..4a776c4a 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -325,7 +325,13 @@ int sigar_swap_get(sigar_t *sigar, sigar_swap_t *swap) status = swapqry(sigar->swaps.devs[i], &info); if (status != 0) { - return errno; + if (SIGAR_LOG_IS_DEBUG(sigar)) { + sigar_log_printf(sigar, SIGAR_LOG_DEBUG, + "[swap] swapqry(%s) failed: %s", + sigar->swaps.devs[i], + sigar_strerror(sigar, errno)); + } + continue; } if (SIGAR_LOG_IS_DEBUG(sigar)) {