Return -1 in zone_read on error
authorDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 11:15:59 +0000 (13:15 +0200)
committerDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 11:15:59 +0000 (13:15 +0200)
src/zone.c

index 6a01b29..52dd977 100644 (file)
@@ -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);