From a5348d0a91ed48db9dfaef827245af210d01a220 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 29 Nov 2013 08:32:20 +0000 Subject: [PATCH] return error as exit code --- src/arm/gnunet-arm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c index b960d0292..0d5f038a3 100644 --- a/src/arm/gnunet-arm.c +++ b/src/arm/gnunet-arm.c @@ -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")); -- 2.25.1