Check errno correctly for errors to ignore
This commit is contained in:
parent
9f69c580af
commit
c4664603fd
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ void BufferedIOStream::thread_main() {
|
|||
const auto written = messenger_->send_raw(
|
||||
buffer.data() + (buffer.size() - bytes_left), bytes_left);
|
||||
if (written < 0) {
|
||||
if (errno != EINTR || errno != EAGAIN) {
|
||||
if (errno != EINTR && errno != EAGAIN) {
|
||||
ERROR("Failed to write data: %s", std::strerror(errno));
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue