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

Public GIT Repository
Use a C++ string instead of char* for mailbox name.
[simgrid.git] / src / mc / Session.cpp
index 810351b139bd1b16521465a3784576a1352199f1..b88f98dd724444c58497d2138820cc5b2f9d98b7 100644 (file)
@@ -16,9 +16,9 @@
 #include <simgrid/sg_config.h>
 
 #include "src/mc/Session.hpp"
-#include "src/mc/mc_state.h"
-#include "src/mc/mc_private.h"
 #include "src/mc/checker/Checker.hpp"
+#include "src/mc/mc_private.hpp"
+#include "src/mc/mc_state.hpp"
 
 #include "src/smpi/include/private.hpp"
 
@@ -140,7 +140,7 @@ Session* Session::fork(std::function<void()> code)
   // process:
   int res;
   int sockets[2];
-  res = socketpair(AF_LOCAL, SOCK_DGRAM | SOCK_CLOEXEC, 0, sockets);
+  res = socketpair(AF_LOCAL, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sockets);
   if (res == -1)
     throw simgrid::xbt::errno_error("Could not create socketpair");