From 44a0bdd298888209040ee12a0470d9d7e8fabd70 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Thu, 28 May 2015 13:15:59 +0200 Subject: [PATCH] Return -1 in zone_read on error --- src/zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zone.c b/src/zone.c index 6a01b298..52dd977b 100644 --- a/src/zone.c +++ b/src/zone.c @@ -183,7 +183,7 @@ static int zone_read (void) if ((procdir = opendir("/proc")) == NULL) { ERROR("zone plugin: cannot open /proc directory\n"); - exit(1); + return (-1); } tree=zone_scandir(procdir); -- 2.30.2