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; }