fix:[TD-25300]dead loop if getchar return EOF in arm64
This commit is contained in:
parent
9a1b5da48f
commit
d031a77b58
|
@ -501,7 +501,7 @@ int32_t shellReadCommand(char *command) {
|
||||||
while (1) {
|
while (1) {
|
||||||
c = taosGetConsoleChar();
|
c = taosGetConsoleChar();
|
||||||
|
|
||||||
if (c == EOF) {
|
if (c == (char)EOF) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue