From: Dagobert Michelsen Date: Thu, 28 May 2015 11:15:59 +0000 (+0200) Subject: Return -1 in zone_read on error X-Git-Tag: collectd-5.6.0~709^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44a0bdd298888209040ee12a0470d9d7e8fabd70;p=collectd.git Return -1 in zone_read on error --- 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);