return error as exit code
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 29 Nov 2013 08:32:20 +0000 (08:32 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 29 Nov 2013 08:32:20 +0000 (08:32 +0000)
src/arm/gnunet-arm.c

index b960d0292f3f306058998f2661a6ea443feb0f17..0d5f038a362a638654a65063ba23a0c8fd3ecf76 100644 (file)
@@ -517,12 +517,14 @@ list_callback (void *cls,
     GNUNET_asprintf (&msg, "%s", _("Failed to request a list of services: %s\n"));
     FPRINTF (stdout, msg, req_string (rs));
     GNUNET_free (msg);
+    ret = 3;
     GNUNET_SCHEDULER_shutdown ();
   }
   if (NULL == list)
   {
     FPRINTF (stderr, "%s", _("Error communicating with ARM. ARM not running?\n"));
     GNUNET_SCHEDULER_shutdown ();
+    ret = 3;
     return;
   }
   FPRINTF (stdout, "%s", _("Running services:\n"));