Skip to content

Commit

Permalink
added continue at errno == ENOTTY
Browse files Browse the repository at this point in the history
[TEST COMMIT]
  • Loading branch information
kashirin-alex committed Oct 5, 2022
1 parent 9e418b2 commit 9c8b2f2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/cc/lib/swcdb/utils/cli/Shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,16 @@ CLI Interface::run() {
do {

if(errno) {
if(errno != EAGAIN) {
SWC_PRINT << "\033[31mERROR\033[00m: unexpected error="
<< errno << '(' << Error::get_text(errno) << ')'
<< SWC_PRINT_CLOSE;
}
auto errtmp = errno;
errno = 0;
break;
if(errtmp != ENOTTY) {
if(errtmp != EAGAIN) {
SWC_PRINT << "\033[31mERROR\033[00m: unexpected error="
<< errtmp << '(' << Error::get_text(errtmp) << ')'
<< SWC_PRINT_CLOSE;
}
break;
}
}

c = *ptr;
Expand Down

0 comments on commit 9c8b2f2

Please sign in to comment.