Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define master_socket_name only once, and embed it with the request to fork.
[simgrid.git] / src / mc / remote / CheckerSide.hpp
index eeaa54e..d89f712 100644 (file)
@@ -21,7 +21,7 @@ class CheckerSide {
   event* socket_event_;
   event* signal_event_;
   std::unique_ptr<event_base, decltype(&event_base_free)> base_{nullptr, &event_base_free};
-#if SIMGRID_HAVE_MC
+#if SIMGRID_HAVE_STATEFUL_MC
   std::unique_ptr<RemoteProcessMemory> remote_memory_;
 #endif
 
@@ -57,7 +57,7 @@ public:
   void wait_for_requests();
 
   /* Create a new CheckerSide by forking the currently existing one, and connect it through the master_socket */
-  std::unique_ptr<CheckerSide> clone(int master_socket);
+  std::unique_ptr<CheckerSide> clone(int master_socket, const std::string& master_socket_name);
 
   /** Ask the application to run post-mortem analysis, and maybe to stop ASAP */
   void finalize(bool terminate_asap = false);
@@ -66,7 +66,7 @@ public:
   pid_t get_pid() const { return pid_; }
   bool running() const { return running_; }
   void terminate() { running_ = false; }
-#if SIMGRID_HAVE_MC
+#if SIMGRID_HAVE_STATEFUL_MC
   RemoteProcessMemory* get_remote_memory() { return remote_memory_.get(); }
 #endif
 };