return errno if proc_list fails

This commit is contained in:
Doug MacEachern 2006-08-05 01:59:32 +00:00
parent 548c0edd30
commit 704b7eb447
1 changed files with 5 additions and 1 deletions

View File

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