Merge pull request #10484 from taosdata/fix/ZhiqiangWang/TD-13736-console-exit-input-error

[TD-13736]<fix>: console exit input error.
This commit is contained in:
Zhiqiang Wang 2022-03-01 22:01:05 +08:00 committed by GitHub
commit 59132243bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -41,9 +41,11 @@ void *cancelHandler(void *arg) {
taosReleaseRef(tscObjRef, rid);
#endif
#else
reset_terminal_mode();
printf("\nReceive ctrl+c or other signal, quit shell.\n");
exit(0);
#endif
reset_terminal_mode();
printf("\nReceive ctrl+c or other signal, quit shell.\n");
exit(0);
}