X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/48eb2f1b9262fc74f527816c348ed2aa6efa9f65..0bb08c80b2bff9de24524dc98f04cd145dfc93c0:/src/mc/remote/Channel.cpp diff --git a/src/mc/remote/Channel.cpp b/src/mc/remote/Channel.cpp index 1fee675094..b655b6160b 100644 --- a/src/mc/remote/Channel.cpp +++ b/src/mc/remote/Channel.cpp @@ -29,11 +29,10 @@ Channel::~Channel() int Channel::send(const void* message, size_t size) const { XBT_DEBUG("Send %s", MC_message_type_name(*(e_mc_message_type*)message)); - while (::send(this->socket_, message, size, 0) == -1) - if (errno == EINTR) - continue; - else + while (::send(this->socket_, message, size, 0) == -1) { + if (errno != EINTR) return errno; + } return 0; }