monitor: Return sensible #monitors online on octopus error.
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Fri, 5 Dec 2014 15:02:28 +0000 (16:02 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Fri, 5 Dec 2014 15:32:28 +0000 (16:32 +0100)
usr/monitor/capops/internal.c

index 469a4fd..402c6d6 100644 (file)
@@ -94,7 +94,8 @@ out:
     oct_free_names(names, count);
     if (err_is_fail(err)) {
         DEBUG_ERR(err, "num_spawnds_online");
-        return 0;
+        debug_printf("error in octopus, setting num_monitors=1\n");
+        return 1;
     }
     return count;
 }