From: Matthias Wachs Date: Fri, 29 Nov 2013 08:32:20 +0000 (+0000) Subject: return error as exit code X-Git-Tag: initial-import-from-subversion-38251~5872 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5348d0a91ed48db9dfaef827245af210d01a220;p=oweals%2Fgnunet.git return error as exit code --- 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"));