return errno if proc_list fails
This commit is contained in:
parent
548c0edd30
commit
704b7eb447
|
@ -221,6 +221,10 @@ int sigar_proc_list_get(sigar_t *sigar,
|
|||
idx = proctab[num-1].pst_idx + 1;
|
||||
}
|
||||
|
||||
if (proclist->number == 0) {
|
||||
return errno;
|
||||
}
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue