From 704b7eb447b3f196c52769ef34b91f607df4c6a5 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 5 Aug 2006 01:59:32 +0000 Subject: [PATCH] return errno if proc_list fails --- src/os/hpux/hpux_sigar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 7839587c..e36c5ca5 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -220,7 +220,11 @@ int sigar_proc_list_get(sigar_t *sigar, idx = proctab[num-1].pst_idx + 1; } - + + if (proclist->number == 0) { + return errno; + } + return SIGAR_OK; }