cleanup output in error-case
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 20 Feb 2004 17:02:40 +0000 (17:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 20 Feb 2004 17:02:40 +0000 (17:02 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@969 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vlimit.c

index 31b5894..690b672 100644 (file)
@@ -124,7 +124,7 @@ showAll(int ctx)
 
   if (vc_get_rlimit_mask(-2, &mask)==-1) {
     perror("vc_get_rlimit_mask()");
-    //exit(1);
+    exit(1);
   }
 
   for (i=0; i<32; ++i) {
@@ -134,7 +134,7 @@ showAll(int ctx)
     
     if (vc_get_rlimit(ctx, i, &limit)==-1) {
       perror("vc_get_rlimit()");
-      //continue;
+      continue;
     }
 
     memset(buf, ' ', sizeof buf);
@@ -147,7 +147,7 @@ showAll(int ctx)
 
     *ptr++ = '\n';
     write(1, buf, ptr-buf);
- }
+  }
 }
 
 static void