]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/cpp/sf/sfcontrol.cpp
try to circumvent Mac OS X problems
[tinyos-2.x.git] / support / sdk / cpp / sf / sfcontrol.cpp
index 1920949d936306cc3c59e94bdb2c039c898404a5..c4758a25c1a315cfd5bebedcd16bfca589313fab 100644 (file)
@@ -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;