Probe: ignore errors when unable to count processes

This commit is contained in:
Pierre Pronchery 2022-05-22 02:52:22 +02:00
parent 134d046e74
commit c51b4b126f

View File

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