Probe: ignore errors when unable to count processes
This commit is contained in:
parent
134d046e74
commit
c51b4b126f
|
@ -263,7 +263,7 @@ static int _sysinfo_procs_generic(struct sysinfo * info)
|
|||
|
||||
info->procs = 0;
|
||||
if((dir = opendir("/proc")) == NULL)
|
||||
return _probe_perror("/proc", -1);
|
||||
return _probe_perror("/proc", 0);
|
||||
while((de = readdir(dir)) != NULL)
|
||||
{
|
||||
#ifdef DT_DIR
|
||||
|
|
Loading…
Reference in New Issue
Block a user