From 181dc3b23278266add9cfbc0bc4dd240b8e76d42 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Wed, 27 Aug 2014 16:27:57 +0300 Subject: [PATCH] vpoller-cclient: Return EX_UNAVAILABLE if don't get a reply back --- src/vpoller-cclient/vpoller-cclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vpoller-cclient/vpoller-cclient.c b/src/vpoller-cclient/vpoller-cclient.c index 0aaaffe..bab2778 100644 --- a/src/vpoller-cclient/vpoller-cclient.c +++ b/src/vpoller-cclient/vpoller-cclient.c @@ -237,6 +237,7 @@ main(int argc, char *argv[]) /* Do we have any result? */ if (result == NULL) { + rc = EX_UNAVAILABLE; printf("{ \"success\": 1, \"msg\": \"Did not receive reply from server, aborting...\" }\n"); } else { printf("%s\n", result);