Fix issue with commands tha produce no putput hanging maxadmin

This commit is contained in:
Mark Riddoch 2014-09-23 01:06:14 +01:00
parent 503b942b5c
commit 869de924d9

View File

@ -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)