From c51b4b126f9b6ccd5e56a5fcddd408b07233ab40 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 22 May 2022 02:52:22 +0200 Subject: [PATCH] Probe: ignore errors when unable to count processes --- src/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probe.c b/src/probe.c index 70b2f34..5d1d9c1 100644 --- a/src/probe.c +++ b/src/probe.c @@ -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