Fix issue with commands tha produce no putput hanging maxadmin
This commit is contained in:
parent
503b942b5c
commit
869de924d9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user