From 869de924d96d841d2ded37e81ffd01d4fbe87533 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Tue, 23 Sep 2014 01:06:14 +0100 Subject: [PATCH] Fix issue with commands tha produce no putput hanging maxadmin --- client/maxadmin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/maxadmin.c b/client/maxadmin.c index 9a3b6ea08..9e871c67f 100644 --- a/client/maxadmin.c +++ b/client/maxadmin.c @@ -391,7 +391,7 @@ char buf[20]; * Send a comamnd using the MaxScaled protocol, display the return data * on standard output. * - * Input terminates with a lien containing jsut the text OK + * Input terminates with a lien containing just the text OK * * @param so The socket connect to MaxScale * @param cmd The command to send @@ -401,7 +401,7 @@ static int sendCommand(int so, char *cmd) { char buf[80]; -int i, j, newline = 0; +int i, j, newline = 1; write(so, cmd, strlen(cmd)); while (1)