Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix PID mismatch in snapshot
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 1 Mar 2016 10:25:29 +0000 (11:25 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 1 Mar 2016 12:32:46 +0000 (13:32 +0100)
I was passing the simulated process PID instead of the native process
PID when taking file descriptor snapshots. File descriptor snapshots
is currently not tested and not fully functional.

src/mc/mc_checkpoint.cpp

index 07fa867..939fe0c 100644 (file)
@@ -561,7 +561,7 @@ mc_snapshot_t take_snapshot(int num_state)
   snapshot_handle_ignore(snapshot);
 
   if (_sg_mc_snapshot_fds)
-    snapshot->current_fds = get_current_fds(process->pid);
+    snapshot->current_fds = get_current_fds(mc_model_checker->process().pid());
 
   const bool use_soft_dirty = _sg_mc_sparse_checkpoint && _sg_mc_soft_dirty;