Skip to content

Commit

Permalink
zero errno when not using it
Browse files Browse the repository at this point in the history
  • Loading branch information
bbidulock committed Sep 10, 2017
1 parent 8c9e2af commit 305ae39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ void bt::Application::run(void) {
}

int ret = select(xfd + 1, &rfds, 0, 0, timeout);
if (ret < 0)
if (ret < 0) {
errno = 0;
continue; // perhaps a signal interrupted select(2)
}

// check for timer timeout
gettimeofday(&now, 0);
Expand Down

0 comments on commit 305ae39

Please sign in to comment.