X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fsdk%2Fcpp%2Fsf%2Fsfcontrol.cpp;h=c4758a25c1a315cfd5bebedcd16bfca589313fab;hb=f2aa9fb41a3e147a3715c028eb091806083de5ac;hp=1920949d936306cc3c59e94bdb2c039c898404a5;hpb=0c7d0be1e6ce10f2b96cf07acca0a8d2c703ac19;p=tinyos-2.x.git diff --git a/support/sdk/cpp/sf/sfcontrol.cpp b/support/sdk/cpp/sf/sfcontrol.cpp index 1920949d..c4758a25 100644 --- a/support/sdk/cpp/sf/sfcontrol.cpp +++ b/support/sdk/cpp/sf/sfcontrol.cpp @@ -452,7 +452,11 @@ bool SFControl::sendToClient(string message) const char* buffer = message.c_str(); while (length > 0) { +#ifdef __APPLE__ + int n = send(clientFD, buffer, length, 0); +#else int n = send(clientFD, buffer, length, MSG_NOSIGNAL); +#endif if (!(n > 0)) { return false;