Code

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 6a01b298bcced48ada82f0e08ae8f257c2eef005..52dd977becb1104b6638c47afa415aed7aa76801 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);