return errno if proc_list fails
This commit is contained in:
parent
548c0edd30
commit
704b7eb447
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue