]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/api/RemoteApp.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce scope for variables (sonar).
[simgrid.git] / src / mc / api / RemoteApp.cpp
index 86e55f5fac3b2290c5b4dcb3cb57b92e4addefd7..3d63a212bd7d5c4d35ff4cce536def9e54f4c810 100644 (file)
@@ -49,11 +49,11 @@ RemoteApp::RemoteApp(const std::vector<char*>& args, bool need_memory_introspect
 #endif
   } else {
     master_socket_ = socket(AF_UNIX,
-                            SOCK_STREAM
-#ifdef SOCK_CLOEXEC
-                                | SOCK_CLOEXEC /* MacOSX does not have it */
+#ifdef __APPLE__
+                            SOCK_STREAM, /* Mac OSX does not have AF_UNIX + SOCK_SEQPACKET, even if that's faster*/
+#else
+                            SOCK_SEQPACKET,
 #endif
-                            ,
                             0);
     xbt_assert(master_socket_ != -1, "Cannot create the master socket: %s", strerror(errno));